HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The following code fragment loads "books.xml" into xmlDoc and returns whether two nodes are equal
The isEqualNode() method tests whether two nodes are equal.
Two nodes are equal when their names are the same, their attributes have the same name and value (does not have to be in the same order), and their child nodes are equal and in same order.
The isEqualNode() method is supported in all major browsers.
nodeObject.isEqualNode(nodetocheck)
Parameter | Type | Description |
---|---|---|
nodetocheck | Node object | Required. The node to compare with the current node |
Type | Description |
---|---|
Boolean | true if the two nodes are equal, otherwise false |
DOM Version | Core Level 3 Node Object |
---|
❮ Node Object