XmlDocumentXPathExtensions.CreateNavigator 方法

定义

重载

CreateNavigator(XmlDocument)

创建用于导航指定文档的新 XPath 导航器对象。Creates a new XPath navigator object for navigating the specified document.

CreateNavigator(XmlNode)

创建用于导航指定节点的 XPath 导航器。Creates an XPath navigator for navigating the specified node.

CreateNavigator(XmlDocument, XmlNode)

创建用于在指定节点上导航指定文档的 XPath 导航器对象。Creates an XPath navigator object for navigating the specified document positioned on the specified node.

CreateNavigator(XmlDocument)

创建用于导航指定文档的新 XPath 导航器对象。Creates a new XPath navigator object for navigating the specified document.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document);
public static System.Xml.XPath.XPathNavigator CreateNavigator (this System.Xml.XmlDocument document);
static member CreateNavigator : System.Xml.XmlDocument -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument) As XPathNavigator

参数

document
XmlDocument

从中创建 XPath 导航器的文档。The document from which the XPath navigator is created.

返回

XPathNavigator

XPath 导航器对象。An XPath navigator object.

适用于

CreateNavigator(XmlNode)

创建用于导航指定节点的 XPath 导航器。Creates an XPath navigator for navigating the specified node.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator (this System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (node As XmlNode) As XPathNavigator

参数

node
XmlNode

导航器最初定位到的节点。The node where the navigator is initially positioned.

返回

XPathNavigator

用于导航节点的 XPath 导航器对象。An XPath navigator object used to navigate the node. XPath 导航器定位在调用方法的节点上,而不是放置在文档的根上。The XPath navigator is positioned on the node from which the method is called, not on the root of the document.

适用于

CreateNavigator(XmlDocument, XmlNode)

创建用于在指定节点上导航指定文档的 XPath 导航器对象。Creates an XPath navigator object for navigating the specified document positioned on the specified node.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document, System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator (this System.Xml.XmlDocument document, System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlDocument * System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument, node As XmlNode) As XPathNavigator

参数

document
XmlDocument

从中创建 XPath 导航器的文档。The document from which the XPath navigator is created.

node
XmlNode

导航器最初定位到的节点。The node where the navigator is initially positioned.

返回

XPathNavigator

XPath 导航器对象。An XPath navigator object.

适用于