Easy Tutorial
❮ Dom Prop Node Previoussibling Prop Document Nodevalue ❯

XML DOM isSameNode() Method



Definition and Usage

The isSameNode() method checks if the specified node is the same as an existing node.

It returns TRUE if the nodes are the same, otherwise it returns FALSE.

Syntax

Parameter Description
node Required. The node to be checked.

Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and checks if two nodes are the same:

Example

Output:


❮ Dom Prop Node Previoussibling Prop Document Nodevalue ❯