System.Xml.XmlNode.CreateNavigator Method

Creates an System.Xml.XPath.XPathNavigator for navigating this object.

Syntax

public virtual System.Xml.XPath.XPathNavigator CreateNavigator ()

Returns

An XPathNavigator object used to navigate the node. The XPathNavigator is positioned on the node from which the method was called. It is not positioned on the root of the document.

Remarks

The XPathNavigator provides read-only, random access to data. Because it is optimized for XSLT transformations, it provides performance benefits when used as an input mechanism to the System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator, System.Xml.Xsl.XsltArgumentList, XmlResolver) method.

This method is a Microsoft extension to the Document Object Model (DOM).

Requirements

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