Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XPathDocument.CreateNavigator Method

Initializes a read-only XPathNavigator object for navigating through nodes in this XPathDocument.

Namespace:  System.Xml.XPath
Assembly:  System.Xml (in System.Xml.dll)

public XPathNavigator CreateNavigator()

Return Value

Type: System.Xml.XPath.XPathNavigator
A read-only XPathNavigator object.

Implements

IXPathNavigable.CreateNavigator()

The XPathNavigator is positioned on the root element of the XPathDocument. If there is no root element, the XPathNavigator is positioned on the first element in the XPathDocument.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft