From http://www.w3schools.com (Copyright Refsnes Data)
Complete Document Object Reference
The nodeName property returns the name of a node, depending on its type.
| documentObject.nodeName |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc(), displays the node name and node type of the root node:
Example
Output:
Try it yourself » |
Display nodeName and nodeValue of all elements
Complete Document Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)