System::Xml::XmlNode::SelectSingleNode method
Contents
[
Hide
]XmlNode::SelectSingleNode(const String&) method
Selects the first XmlNode that matches the XPath expression.
SharedPtr<XmlNode> System::Xml::XmlNode::SelectSingleNode(const String &xpath)
Parameter | Type | Description |
---|---|---|
xpath | const String& | The XPath expression. |
ReturnValue
The first XmlNode that matches the XPath query or nullptr if no matching node is found.
See Also
- Typedef SharedPtr
- Class XmlNode
- Class String
- Class XmlNode
- Namespace System::Xml
- Library Aspose.Page for C++
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)
Parameter | Type | Description |
---|---|---|
xpath | const String& | The XPath expression. |
nsmgr | const 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
- Typedef SharedPtr
- Class XmlNode
- Class String
- Class XmlNamespaceManager
- Class XmlNode
- Namespace System::Xml
- Library Aspose.Page for C++