This documentation is archived and is not being maintained.

System.Xml.XPath Namespace

The System.Xml.XPath namespace contains the XPath parser and evaluation engine. It supports the W3C XML Path Language (XPath) Version 1.0 Recommendation (

Namespace hierarchy


Class Description
XPathDocument Provides a fast, read-only cache for XML document processing using XSLT.
XPathException The exception that is thrown when an error occurs when processing an XPath expression.
XPathExpression Encapsulates a compiled XPath expression. This class is returned as a result of a call to Compile and is used by the Select, Evaluate and Matches methods.
XPathNavigator Reads data from any data store using a cursor model.
XPathNodeIterator Provides an iterator over a set of selected nodes.


Interface Description
IXPathNavigable Provides an accessor to the XPathNavigator.


Enumeration Description
XmlCaseOrder Specifies the sort order for upper and lower case letters.
XmlDataType Specifies the data type used to determine sort order.
XmlSortOrder Specifies the sort order.
XPathNamespaceScope Defines the namespace scope. The enumeration can be passed to the XPathNavigator.MoveToFirstNamespace and XPathNavigator.MoveToNextNamespace methods to specify the type of namespace node to move to.
XPathNodeType Specifies the XPath node types that can be returned from the XPathNavigator.

For more information on XPath node types, see the Data Model section of the W3C XML Path Language (XPath) Version 1.0 Recommendation located at

XPathResultType Specifies the return type of the XPath expression.

See Also

.NET Framework Class Library