(PECL xmldiff >= 0.8.0)
$from
$to
$src
$diff
The following snippet will show the use case of XMLDiff\File.<?php $dxml=new XMLDiff\File; $diff= $dxml->diff("file1.xml", "file2.xml"); $difffile= 'difference.xml'; file_put_contens($difffile, $diff); ?>