System::Xml::XPath::XPathNavigator::SelectSingleNode method
XPathNavigator::SelectSingleNode(SharedPtr<XPathExpression>) method
Selects a single node in the XPathNavigator using the specified XPathExpression object.
virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(SharedPtr<XPathExpression> expression)
Parameter | Type | Description |
---|---|---|
expression | SharedPtr<XPathExpression> | An XPathExpression object containing the compiled XPath query. |
ReturnValue
An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise nullptr if there are no query results.
See Also
- Typedef SharedPtr
- Class XPathNavigator
- Class XPathExpression
- Class XPathNavigator
- Namespace System::Xml::XPath
- Library Aspose.Page for C++
XPathNavigator::SelectSingleNode(String) method
Selects a single node in the XPathNavigator using the specified XPath query.
virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(String xpath)
Parameter | Type | Description |
---|---|---|
xpath | String | A String representing an XPath expression. |
ReturnValue
An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise, nullptr if there are no query results.
See Also
- Typedef SharedPtr
- Class XPathNavigator
- Class String
- Class XPathNavigator
- Namespace System::Xml::XPath
- Library Aspose.Page for C++
XPathNavigator::SelectSingleNode(String, SharedPtr<IXmlNamespaceResolver>) method
Selects a single node in the XPathNavigator object using the specified XPath query with the IXmlNamespaceResolver object specified to resolve namespace prefixes.
virtual SharedPtr<XPathNavigator> System::Xml::XPath::XPathNavigator::SelectSingleNode(String xpath, SharedPtr<IXmlNamespaceResolver> resolver)
Parameter | Type | Description |
---|---|---|
xpath | String | A String representing an XPath expression. |
resolver | SharedPtr<IXmlNamespaceResolver> | The IXmlNamespaceResolver object used to resolve namespace prefixes in the XPath query. |
ReturnValue
An XPathNavigator object that contains the first matching node for the XPath query specified; otherwise nullptr if there are no query results.
See Also
- Typedef SharedPtr
- Class XPathNavigator
- Class String
- Class IXmlNamespaceResolver
- Class XPathNavigator
- Namespace System::Xml::XPath
- Library Aspose.Page for C++