XML::SmartDiff - Compares two XML documents smart way
version 0.001
use XML::SmartDiff;
my $diff = XML::SmartDiff->new();
my $it = $diff->compare('file1.xml', 'file2.xml');
while(my $change = $it->next) {
print $change->to_string;
}
Set class for individual changes. Default to XML::SmartDiff::Change
ArrayRef of options passed to XML::LibXML constructor.
my $change_it = $diff->compare('filename1.xml', 'filename2.xml');
my $change_it = $diff->compare($filehandle1, $filehandle2);
my $change_it = $diff->compare(location => 'filename1.xml', location => 'filename2.xml');
my $change_it = $diff->compare(string => '<doc><elem/></doc>', string => '<doc><elem/></doc>');
Returns iterator to compare two XML documents.
Returns string key to identify identical object. Can be subclassed to enable different set of elements.
Roman Hubacek roman.hubacek@centrum.cz
This software is copyright (c) 2011 by Roman Hubacek.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.