XmlDataProvider.XPath Property


Gets or sets the XPath query used to generate the data collection.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public string XPath { get; set; }

Property Value

Type: System.String

The XPath query used to generate the data collection. The default is an empty string.

The XmlNode.SelectNodes method handles the XPath expressions from the XPath property. XPath functions are not supported. For XPath expression information, see the SelectNodes documentation and some examples provided in the Example section.

Setting the following properties will implicitly cause this XmlDataProvider object to refresh: Source, Document, XmlNamespaceManager, and XPath. When changing multiple refresh-causing properties, the use of DeferRefresh is recommended.

.NET Framework
Available since 3.0
Return to top