get_Name()

XmlReader::get_Name() method

When overridden in a derived class, gets the qualified name of the current node.

virtual String System::Xml::XmlReader::get_Name()

Return Value

The qualified name of the current node. For example, Name is bk:book for the element bk:book.

Remarks

The name returned is dependent on the XmlReader::get_NodeType value of the node. The following node types return the listed values. All other node types return an empty string.

Node typeName
[Attribute](../../../system/attribute/)The 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.

See Also