.NET Framework Class Library
XPathDocument.CreateNavigator Method

Creates an XPathNavigator for navigating this document.

[Visual Basic]
Public Overridable Function CreateNavigator() As XPathNavigator _
   Implements IXPathNavigable.CreateNavigator
[C#]
public virtual XPathNavigator CreateNavigator();
[C++]
public: virtual XPathNavigator* CreateNavigator();
[JScript]
public function CreateNavigator() : XPathNavigator;

Return Value

An XPathNavigator object.

Implements

IXPathNavigable.CreateNavigator

Remarks

The XPathNavigator is positioned at the root of the document. This method is part of the IXPathNavigable interface.

Example

See XPathNavigator.Select for an example using this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XPathDocument Class | XPathDocument Members | System.Xml.XPath Namespace

Page view tracker