(PECL xmldiff >= 0.8.0)
XMLDiff\DOM::diff — Diff two DOMDocument objects
Diff two DOMDocument instances and produce the new one containing the diff information.
fromSource DOMDocument object.
toTarget DOMDocument object.
DOMDocument with the diff information or NULL.