CreateNavigator Method
Collapse the table of content
Expand the table of content

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.

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft