IXPathNavigable.CreateNavigator Method ()

 

Returns a new XPathNavigator object.

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

XPathNavigator CreateNavigator()

Return Value

Type: System.Xml.XPath.XPathNavigator

An XPathNavigator object.

If the CreateNavigator method is called from an XmlNode object, the XPathNavigator object is initially positioned on the node from which the method was called. If the CreateNavigator method is called from an XPathDocument object or an XmlDocument object, the XPathNavigator object is positioned on the root of the document.

For examples of the CreateNavigator method, see the XmlNode, XPathDocument, or XmlDocument classes.

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show: