SelectAncestors()
Contents
[
Hide
]XPathNavigator::SelectAncestors(XPathNodeType, bool) method
Selects all the ancestor nodes of the current node that have a matching XPathNodeType.
virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectAncestors(XPathNodeType type, bool matchSelf)
Arguments
Parameter | Type | Description |
---|---|---|
type | XPathNodeType | The XPathNodeType of the ancestor nodes. |
matchSelf | bool | To include the context node in the selection, true; otherwise, false. |
Return Value
An XPathNodeIterator that contains the selected nodes. The returned nodes are in reverse document order.
XPathNavigator::SelectAncestors(String, String, bool) method
Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.
virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectAncestors(String name, String namespaceURI, bool matchSelf)
Arguments
Parameter | Type | Description |
---|---|---|
name | String | The local name of the ancestor nodes. |
namespaceURI | String | The namespace URI of the ancestor nodes. |
matchSelf | bool | To include the context node in the selection, true; otherwise, false. |
Return Value
An XPathNodeIterator that contains the selected nodes. The returned nodes are in reverse document order.
See Also
- Enum XPathNodeType
- Typedef SharedPtr
- Class XPathNodeIterator
- Class XPathNavigator
- Class String
- Namespace System::Xml::XPath
- Library Aspose.Slides