title: SelectedItem of Listview is lost when refreshing XML DataProvider
body: <p>I have a Listview which is bound to a XML file. The values of the different nodes of the XML files can be changed using Textboxes. If I change the value of an element which is directly bound to the element in the listview everything works fine. The problem starts if I change values in the XML file depending on other values and then I have to refresh the XML dataprovider to see the changes in the listbox. If I do so, then my previously SelectedItem is lost. I also tried to save the SelectedItem and reload it after refreshing, but it didn't work.</p>
  
  <p>Is there an alternative method to refresh a XML dataprovider?
  Or is there a better way to refreh the ListView?</p>
  
  <p>in Window1.xaml:
  <br>...</p>
  
  <pre><code>       &lt;Grid.DataContext&gt;
              &lt;XmlDataProvider x:Name="VoltageData" Source="Voltages.xml" XPath="Voltages/Voltage" /&gt;
         &lt;/Grid.DataContext&gt;
  </code></pre>
  
  <p><br>...
  <br>in Window1.xaml.cs:
  <br>...</p>
  
  <pre><code>        xmlDoc.Save(VoltageData.Source.LocalPath);
          VoltageData.Refresh();
  </code></pre>
  
  <p>...</p>