The isEqualNode() method returns true if a node is equal to the given one, otherwise it returns false.
Parameter | Description |
---|---|
node | Required. The node to check |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and checks if two nodes are equal:
Output: