Document Object
The nodeValue property sets or returns the value of a node, depending on its type.
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:
Output:
Document Object
Your message has been sent to W3Schools.