Allows to check if the provided references represents two equivalent nodes.
The function will check node name, node content and node attributes and its values.
- Parameters:
-
| node | The node to check. |
| node2 | The second node to check. |
- Returns:
- true if both nodes are equivalent or false if not.