protected function isEqualNode(DOMNode $node1, DOMNode $node2)
	{
		return ($node1->ownerDocument->saveXML($node1) === $node2->ownerDocument->saveXML($node2));
	}
protected function isEqualNode(DOMNode $node1, DOMNode $node2)
	{
		return ($node1->ownerDocument->saveXML($node1) === $node2->ownerDocument->saveXML($node2));
	}
protected function isEqualNode ( DOMNode $ node1 , DOMNode $ node2 ) { return ( $ node1 -> ownerDocument -> saveXML ( $ node1 ) === $ node2 -> ownerDocument -> saveXML ( $ node2 ) ) ; }
Test whether two nodes are identical

ext/dom does not support isEqualNode() from DOM Level 3 so this is a makeshift replacement.
Unlike the DOM 3 function, attributes order matters

@param  DOMNode $node1
@param  DOMNode $node2
@return bool
Test whether two nodes are identical