System.Xml.XPath.XPathNavigator.MoveToNextNamespace Method

When overridden in a derived class, moves the System.Xml.XPath.XPathNavigator to the next namespace node matching the System.Xml.XPath.XPathNamespaceScope specified.

Syntax

public abstract bool MoveToNextNamespace (XPathNamespaceScope namespaceScope)

Parameters

namespaceScope
An System.Xml.XPath.XPathNamespaceScope value describing the namespace scope.

Returns

Returns true if the System.Xml.XPath.XPathNavigator is successful moving to the next namespace node; otherwise, false. If false, the position of the System.Xml.XPath.XPathNavigator is unchanged.

Remarks

The System.Xml.XPath.XPathNavigator class returns namespace nodes in reverse document order.

If the System.Xml.XPath.XPathNavigator is not currently positioned on a namespace node, this method returns false and the position of the System.Xml.XPath.XPathNavigator does not change.

When the System.Xml.XPath.XPathNavigator is positioned on a namespace node, the methods XPathNavigator.MoveToNext, XPathNavigator.MoveToPrevious, and XPathNavigator.MoveToFirst are not applicable. These methods always return false and do not change the position of the System.Xml.XPath.XPathNavigator.

After the System.Xml.XPath.XPathNavigator is positioned on an namespace node, call XPathNavigator.MoveToParent to move back to the element node.

For a definition of namespace nodes, see section 5.4 of the W3C XML Path Language (XPath) recommendation located at http://www.w3.org/TR/xpath#data-model.

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