Gets the name of the current node, including the namespace prefix.
[Visual Basic] MustOverride Public ReadOnly Property Name As String [C#] public string Name {abstract get;} [C++] public: __property virtual String* get_Name() = 0; [JScript] public abstract function get Name() : String;
The qualified name of the current node. This means Name includes the namespace prefix. For example, Name is xxx:yyy for the element <xxx:yyy>.
The name returned is dependent on the NodeType of the node:
Type | Name |
---|---|
Attribute | name of attribute |
CDATA | String.Empty |
Comment | String.Empty |
Document | String.Empty |
DocumentFragment | String.Empty |
DocumentType | document type name |
Element | tag name |
Entity | entity name |
EntityReference | name of entity referenced |
Notation | notation name |
ProcessingInstruction | target |
Text | String.Empty |
XmlReader Class | XmlReader Members | System.NewXml Namespace