System::Xml::XmlNode::SelectNodes method

XmlNode::SelectNodes(const String&) method

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

SharedPtr<XmlNodeList> System::Xml::XmlNode::SelectNodes(const String &xpath)
ParameterType描述
xpathconst String&XPath 表达式。

ReturnValue

一个包含匹配 XPath 查询的节点集合的 XmlNodeList

另见

XmlNode::SelectNodes(const String&, const SharedPtr<XmlNamespaceManager>&) method

选择匹配 XPath 表达式的节点列表。 在 XPath 表达式中发现的任何前缀都使用提供的 XmlNamespaceManager 进行解析。

SharedPtr<XmlNodeList> System::Xml::XmlNode::SelectNodes(const String &xpath, const SharedPtr<XmlNamespaceManager> &nsmgr)
ParameterType描述
xpathconst String&XPath 表达式。
nsmgrconst SharedPtr<XmlNamespaceManager>&用于在 XPath 表达式中解析前缀命名空间的 XmlNamespaceManager

ReturnValue

一个包含匹配 XPath 查询的节点集合的 XmlNodeList

另见