(PECL xmldiff >= 0.8.0)
XMLDiff\Memory::diff — Diff two XML documents
$from
$to
Diff two strings containing XML documents and produce the diff information.
from
Source XML document.
to
Target XML document.
String with the XML document containing the diff information or NULL.