System::Xml::XmlNode::SelectSingleNode method

XmlNode::SelectSingleNode(const String&) method

Selects the first XmlNode that matches the XPath expression.

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath)
ParameterTypeDescription
xpathconst String&The XPath expression.

ReturnValue

The first XmlNode that matches the XPath query or nullptr if no matching node is found.

See Also

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

Selects the first XmlNode that matches the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied XmlNamespaceManager.

SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath, const SharedPtr<XmlNamespaceManager> &nsmgr)
ParameterTypeDescription
xpathconst String&The XPath expression.
nsmgrconst SharedPtr<XmlNamespaceManager>&An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression.

ReturnValue

The first XmlNode that matches the XPath query or nullptr if no matching node is found.

See Also