SelectDescendants()

XPathNavigator::SelectDescendants(XPathNodeType, bool) method

Selects all the descendant nodes of the current node that have a matching XPathNodeType.

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectDescendants(XPathNodeType type, bool matchSelf)

Arguments

ParameterTypeDescription
typeXPathNodeTypeThe XPathNodeType of the descendant nodes.
matchSelfbooltrue to include the context node in the selection; otherwise, false.

Return Value

An XPathNodeIterator that contains the selected nodes.

XPathNavigator::SelectDescendants(String, String, bool) method

Selects all the descendant nodes of the current node with the local name and namespace URI specified.

virtual SharedPtr<XPathNodeIterator> System::Xml::XPath::XPathNavigator::SelectDescendants(String name, String namespaceURI, bool matchSelf)

Arguments

ParameterTypeDescription
nameStringThe local name of the descendant nodes.
namespaceURIStringThe namespace URI of the descendant nodes.
matchSelfbooltrue to include the context node in the selection; otherwise, false.

Return Value

An XPathNodeIterator that contains the selected nodes.

See Also