XmlDocumentXPathExtensions 类

定义

提供文档 XmlDocument 导航和 XmlNode 文档导航的扩展方法。

public ref class XmlDocumentXPathExtensions abstract sealed
public static class XmlDocumentXPathExtensions
type XmlDocumentXPathExtensions = class
Public Module XmlDocumentXPathExtensions
继承
XmlDocumentXPathExtensions

方法

名称 说明
CreateNavigator(XmlDocument, XmlNode)

创建一个 XPath 导航器对象,用于导航位于指定节点上的指定文档。

CreateNavigator(XmlDocument)

创建用于导航指定文档的新 XPath 导航器对象。

CreateNavigator(XmlNode)

创建用于导航指定节点的 XPath 导航器。

SelectNodes(XmlNode, String, XmlNamespaceManager)

选择与指定的 XPath 表达式匹配的节点列表。 使用提供的命名空间管理器解析 XPath 表达式中找到的任何前缀。

SelectNodes(XmlNode, String)

选择与指定的 XPath 表达式匹配的节点列表。

SelectSingleNode(XmlNode, String, XmlNamespaceManager)

选择与 XPath 表达式匹配的第一个节点。 使用提供的命名空间管理器解析 XPath 表达式中找到的任何前缀。

SelectSingleNode(XmlNode, String)

选择与 XPath 表达式匹配的第一个节点。

ToXPathNavigable(XmlNode)

IXPathNavigable创建用于生成导航器的实例。

适用于