System.Xml.XPath.XPathDocument.CreateNavigator Method

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

Syntax

public XPathNavigator CreateNavigator ()

Returns

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

Remarks

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

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