From http://www.w3schools.com (Copyright Refsnes Data)
Complete Element Object Reference
The isSameNode() method checks if the specified node is the same as the existing node.
This function returns TRUE if the two nodes are the same, and FALSE otherwise.
| elementNode.isSameNode(node) |
| 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 the same:
Example
Output:
Try it yourself » |
Complete Element Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)