XPathNavigator.SelectChildren Method (XPathNodeType)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

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
Silverlight
Available since 4.0
Return to top
Show: