XPathNavigator.SelectChildren Method (XPathNodeType)


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

Namespace:   System.Xml.XPath
Assembly:  System.Xml (in System.Xml.dll)

public virtual XPathNodeIterator SelectChildren(
	XPathNodeType type


Type: System.Xml.XPath.XPathNodeType

The XPathNodeType of the child nodes.

Return Value

Type: System.Xml.XPath.XPathNodeIterator

An XPathNodeIterator that contains the selected nodes.

The SelectChildren method has no effect on the state of the XPathNavigator.

For an example of selecting ancestor, child and descendant nodes, see SelectAncestors.

.NET Framework
Available since 1.1
Available since 4.0
Return to top