System.Xml.XmlTextReader.NamespaceURI Property

Gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.

Syntax

public override string NamespaceURI { get; }

Value

A string containing the namespace URI of the current node or, if no namespace URI is associated with the current node, string.Empty.

Remarks

Note:

In the dnprdnext release, the recommended practice is to create System.Xml.XmlReader instances using the erload:System.Xml.XmlReader.Create method. This allows you to take full advantage of the new features introduced in this release. For more information, see Creating XML Readers.

This property is relevant to Element and Attribute nodes only.

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