Easy Tutorial
❮ Dom Nodes Access Dom Comment ❯

XML DOM nodeType Property



Definition and Usage

The nodeType property returns the node type of the node.

Syntax


Example

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

Example

Output:


❮ Dom Nodes Access Dom Comment ❯