From http://www.w3schools.com (Copyright Refsnes Data)
Complete Element Object Reference
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.
| elementNode.localName |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the local name from the first <book> element:
Example
The output of the code above will be:
Try it yourself » |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and gets the local name from the last child node:
Example
The output of the code above will be:
Try it yourself » |
Complete Element Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)