NamespaceURI Property

XmlNode.NamespaceURI Property

 

Gets the namespace URI of this node.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public virtual string NamespaceURI { get; }

Property Value

Type: System.String

The namespace URI of this node. If there is no namespace URI, this property returns String.Empty.

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft