get_Name()

XmlTextReader::get_Name() method

Returns the qualified name of the current node.

String System::Xml::XmlTextReader::get_Name() override

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 XmlTextReader::get_NodeType value 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.

See Also