title: Are WPF binding properties Path and XPath mutually exclusive?
body: <p>Suppose I have a <code>UserControl</code> whose <code>DataContext</code> is set to an object that has an <code>XmlDataProvider</code> property. I would like to bind to this property in my control's XAML, and specify some XPath. I tried this:</p>
  
  <pre><code>&lt;TreeView ItemsSource="{Binding Path=PropertyName, XPath=/items/item/*}"&gt;
  </code></pre>
  
  <p>At runtime I get the exception "BindingExpression with XPath cannot bind to non-XML object". Removing the <code>Path</code> property and setting the <code>TreeView</code>'s DataContext to the <code>XmlPropertyName</code> directly works fine.</p>
  
  <p>What gives? Are <code>Path</code> and <code>XPath</code> mutually exclusive?</p>