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_contents($difffile, $diff); ?>(PECL xmldiff >= 0.8.0)
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_contents($difffile, $diff); ?>