This documentation is archived and is not being maintained.

IXPathNavigable.CreateNavigator Method

Returns a new XPathNavigator object.

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

XPathNavigator CreateNavigator ()
XPathNavigator CreateNavigator ()
function CreateNavigator () : XPathNavigator

Return Value

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: