System.Xml.XPath.XPathNavigator Class

Provides a cursor model for navigating and editing XML data.

See Also: XPathNavigator Members

Syntax

public abstract class XPathNavigator : XPathItem, ICloneable, System.Xml.IXmlNamespaceResolver, IXPathNavigable

Remarks

The System.Xml.XPath.XPathNavigator class in the System.Xml.XPath namespace is an abstract class which defines a cursor model for navigating and editing XML information items as instances of the XQuery 1.0 and XPath 2.0 Data Model.

An System.Xml.XPath.XPathNavigator object is created from a class that implements the System.Xml.XPath.IXPathNavigable interface such as the System.Xml.XPath.XPathDocument and System.Xml.XmlDocument classes. System.Xml.XPath.XPathNavigator objects created by System.Xml.XPath.XPathDocument objects are read-only while System.Xml.XPath.XPathNavigator objects created by System.Xml.XmlDocument objects can be edited. An System.Xml.XPath.XPathNavigator object's read-only or editable status is determined using the XPathNavigator.CanEdit property of the System.Xml.XPath.XPathNavigator class.

For more information about processing XML data using the XPath data model, see the Process XML Data Using the XPath Data Model topic.

Note:

Exceptions raised as a result of using the System.Xml.XPath.XPathNavigator class, such as the System.Xml.XPath.XPathException class, may contain sensitive information that should not be exposed in untrusted scenarios. Exceptions should be properly handled so that this sensitive information is not exposed in untrusted scenarios.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0