Package DE_EPAGES::XML::API::SemanticDiff
Functions
- DiffFiles
DiffFiles
Returns difference of two xml files. It's possible to ignore attributes.
Syntax |
$ahDifferences = DiffFiles($file1, $file2, $aIgnoreAttributes);
|
Example |
$ahDifferences = DiffFiles('import.xml', 'export.xml', ['GUID', 'delete']);
|
Input |
- $file1 (string)
- old xml file name
- $file2 (string)
- new xml file name
- $aIgnoreAttributes (ref.array.string)
- list of ignored attribute names
|
Return |
- $ahDifferences (ref.array.hash.string)
- list of differences keys:
- context - xpath position of difference
- startline - start line
- endline - end line
- message - what is different
- new_value - if attribute changed or new then new value
- old_value - if attribute changed or removed then old value
|
Package DE_EPAGES::XML::API::SemanticDiff::ObjectHandler