Easy Tutorial
❮ Prop Node Prefix Dom Text ❯

XML DOM nodeValue Property



Definition and Usage

The nodeValue property sets or returns the value of a node, depending on its type.

Syntax


Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and displays the node name and node value of the root node:

Example

Output:


❮ Prop Node Prefix Dom Text ❯