To determine whether two nodes are equal, use the isEqualNode() function.
When two nodes share the same type, defining characteristics (for elements, these would include their ID, number of offspring, and so on),
matching attributes, and so on, they are considered equivalent.