Element Object
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.
| 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:
Output:
Element Object
Your message has been sent to W3Schools.