Easy Tutorial
❮ Dom Nodes Info Met Element Setattributens ❯

XML DOM isEqualNode() Method



Definition and Usage

The isEqualNode() method returns true if the node is equal to the given node, 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 equal:

Output:


❮ Dom Nodes Info Met Element Setattributens ❯