XmlDocumentXPathExtensions 类
定义
为文档导航提供和的扩展方法 XmlDocument XmlNode 。Provides extension methods for the XmlDocument and XmlNode for document navigation.
public ref class XmlDocumentXPathExtensions abstract sealed
public static class XmlDocumentXPathExtensions
type XmlDocumentXPathExtensions = class
Public Module XmlDocumentXPathExtensions
- 继承
-
XmlDocumentXPathExtensions
方法
| CreateNavigator(XmlDocument) |
创建用于导航指定文档的新 XPath 导航器对象。Creates a new XPath navigator object for navigating the specified document. |
| CreateNavigator(XmlDocument, XmlNode) |
创建用于在指定节点上导航指定文档的 XPath 导航器对象。Creates an XPath navigator object for navigating the specified document positioned on the specified node. |
| CreateNavigator(XmlNode) |
创建用于导航指定节点的 XPath 导航器。Creates an XPath navigator for navigating the specified node. |
| SelectNodes(XmlNode, String) |
选择与指定的 XPath 表达式匹配的节点列表。Selects a list of nodes matching the specified XPath expression. |
| SelectNodes(XmlNode, String, XmlNamespaceManager) |
选择与指定的 XPath 表达式匹配的节点列表。Selects a list of nodes matching the specified XPath expression. 使用提供的命名空间管理器解析 XPath 表达式中的任何前缀。Any prefixes found in the XPath expression are resolved using the supplied namespace manager. |
| SelectSingleNode(XmlNode, String) |
选择与 XPath 表达式匹配的第一个节点。Selects the first node that matches the XPath expression. |
| SelectSingleNode(XmlNode, String, XmlNamespaceManager) |
选择与 XPath 表达式匹配的第一个节点。Selects the first node that matches the XPath expression. 使用提供的命名空间管理器解析 XPath 表达式中的任何前缀。Any prefixes found in the XPath expression are resolved using the supplied namespace manager. |
| ToXPathNavigable(XmlNode) |
创建 IXPathNavigable 用于生成导航器的实例。Creates an IXPathNavigable instance used for producing navigators. |