System.Xml.XPath.XPathNavigator.SelectChildren Method

Selects all the child nodes of the current node that have the local name and namespace URI specified.

Syntax

public virtual XPathNodeIterator SelectChildren (string name, string namespaceURI)

Parameters

name
The local name of the child nodes.
namespaceURI
The namespace URI of the child nodes.

Returns

An System.Xml.XPath.XPathNodeIterator that contains the selected nodes.

Remarks

If string.Empty is specified as the name parameter, all child nodes that belong to the specified namespace URI are selected. If string.Empty is specified as the namespaceURI parameter, all child nodes with the specified local name that belong to no namespace are selected. If both the local name and namespace URI parameters are string.Empty, all child nodes that belong to no namespace are selected.

The XPathNavigator.SelectChildren(string, string) method has no effect on the state of the System.Xml.XPath.XPathNavigator.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0