System.Xml.XmlNode.NamespaceURI Property

Gets the namespace URI of this node.

Syntax

public virtual string NamespaceURI { get; }

Value

The URI of the namespace of the node.

Remarks

This is the namespace URI specified at creation time. For example, NamespaceURI is urn:samples for the element <bk:book xmlns:bk= "urn:samples">

An attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it simply has no namespace.

Requirements

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