name
For START_TAG or END_TAG events, the (local) name of the current element is returned when namespaces are enabled. When namespace processing is disabled, the raw name is returned. For ENTITY_REF events, the entity name is returned. If the current event is not START_TAG, END_TAG, or ENTITY_REF, an empty string is returned.
Please note: To reconstruct the raw element name when namespaces are enabled and the prefix is not empty, you will need to add the prefix and a colon to localName.