Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.Name Property

Gets the qualified name of the current node. [Edit]

public override string Name { get; }

Value

A string containing the qualified name of the current node or, for node types that do not have a name (like Text, Comment , and so on), string.Empty. [Edit]

Remarks

This property is read-only.

The name returned is dependent on the XmlTextReader.NodeType of the node. The following node types return the listed values. All other node types return an empty string.

Node TypeName
AttributeThe name of the attribute.
DocumentTypeThe document type name.
ElementThe tag name.
EntityReferenceThe name of the entity referenced.
ProcessingInstructionThe target of the processing instruction.
XmlDeclarationThe literal string "xml".
Note:

The qualified name is equivalent to the XmlTextReader.LocalName prefixed with XmlTextReader.Prefix and the ':' character. For example, XmlTextReader.Name is "bk:book" for the element <bk:book>.

This property overrides XmlReader.Name.

[Edit]

Requirements

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