.. _XML.localName: ================================================ XML.localName ================================================ :ref:`string` **localName** () Description ----------- Returns the local name of this XML object. This value corresponds to the element name unless the name has a namespace prefix. For example, if the element has the name "ns:tag", the return value is "tag".