PHP 7.0.6 Released

The XMLDiff\File class

(PECL xmldiff >= 0.8.0)

Introduction

Class synopsis

XMLDiff\File extends XMLDiff\Base {
/* Methods */
public string diff ( string $from , string $to )
public string merge ( string $src , string $diff )
/* Inherited methods */
public XMLDiff\Base::__construct ( string $nsname )
abstract public mixed XMLDiff\Base::diff ( mixed $from , mixed $to )
abstract public mixed XMLDiff\Base::merge ( mixed $src , mixed $diff )
}

Table of Contents

User Contributed Notes

ngbabu at gmail dot com
5 months ago
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);
?>
To Top