SelectSingleNode()
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)
Arguments
Parameter | Type | Description |
---|---|---|
xpath | const String& | The XPath expression. |
Return Value
The first XmlNode that matches the XPath query or nullptr if no matching node is found.
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)
Arguments
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. |
Return Value
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
- Namespace System::Xml
- Library Aspose.Slides