From http://www.w3schools.com (Copyright Refsnes Data)
Complete Document Object Reference
The nodeValue property sets or returns the value of a node, depending on its type.
| documentObject.nodeValue |
In all examples, we will use the XML file books.xml, and the JavaScript function loadXMLDoc().
The following code fragment displays the node name and node value of the root node:
Example
Output:
Try it yourself » |
Complete Document Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)