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