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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0