System.Xml.XPath.XPathNamespaceScope Enumeration

Defines the namespace scope.

Syntax

public enum XPathNamespaceScope

Remarks

The System.Xml.XPath.XPathNamespaceScope enumeration can be passed to the XPathNavigator.MoveToFirstNamespace(XPathNamespaceScope) and XPathNavigator.MoveToNextNamespace(XPathNamespaceScope) methods of the System.Xml.XPath.XPathNavigator class to specify the type of namespace node to move to.

Members

Member NameDescription
All

Returns all namespaces defined in the scope of the current node. This includes the xmlns:xml namespace which is always declared implicitly. The order of the namespaces returned is not defined.

ExcludeXml

Returns all namespaces defined in the scope of the current node, excluding the xmlns:xml namespace. The xmlns:xml namespace is always declared implicitly. The order of the namespaces returned is not defined.

Local

Returns all namespaces that are defined locally at the current node.

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