Element Object
The localName property returns the local name (element name) of the selected element
If the selected node is not an element or attribute, this property returns NULL.
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the local name from the first <book> element:
The output of the code above will be:
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the local name from the last child node:
The output of the code above will be:
Element Object
Your message has been sent to W3Schools.