title: how to change xmldataprovider source in wpf at runtime?
body: <p>I made an application which draws a tree of organization based on values from an xml file.</p>
  
  <p>The xaml file goes like this :</p>
  
  <pre><code>&lt;Window.Resources&gt;
  
  
      &lt;!-- The Org Chart Data--&gt;
      &lt;XmlDataProvider x:Key="organization"  Source="model.xml" /&gt;
  
      &lt;SolidColorBrush x:Key="ListBorder" Color="#FF7F9DB9"/&gt;
  
      &lt;!-- The Style for Nodes --&gt;
      &lt;Style TargetType="{x:Type draw:Node}"&gt;
          &lt;Setter Property="OverridesDefaultStyle" Value="true"/&gt;
          &lt;Setter Property="Template"&gt;
          ---------------------------------------------------------
  </code></pre>
  
  <p>I want to be able to change the source at runtime by selecting a xml file from openfiledialog (like button click) how do i do that?</p>