System.Xml.XPath.XPathNavigator.NamespaceURI Property

When overridden in a derived class, gets the namespace URI of the current node.

Syntax

public abstract string NamespaceURI { get; }

Value

A string that represents the namespace URI.

Remarks

The namespace URI returned depends on the System.Xml.XPath.XPathNodeType of the current node.

The XPathNavigator.NamespaceURI property returns urn:samples for the node <bk:book xmlns:bk='urn:samples'>.

Only XPathNodeType.Element and XPathNodeType.Attribute System.Xml.XPath.XPathNodeType nodes can have a namespace URI.

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