Subject: | error comparing unordered child nodes |
When using the following code:
#start code
use Data::Dumper;
use strict;
use XML::SemanticDiff;
my $test_file = "getUnitprotDescriptorsByKeyword-test-output.xml";
my $control_file = "getUnitprotDescriptorsByKeyword-control-output.xml";
my $diff = XML::SemanticDiff->new(keeplinenums => 1);
foreach my $change ($diff->compare($test_file, $control_file)) {
print "$change->{message} (between lines $change->{startline} and
$change->{endline})\n";
}
#end code
The 2 docs report to be different, when they are not. The XML docs have
one node in them with lots of child nodes. The ordering was all that is
different.
Thanks.
Subject: | getUnitprotDescriptorsByKeyword-unit-test.rdf |
Message body not shown because it is not plain text.
Subject: | getUnitprotDescriptorsByKeyword-control-output.xml |
Message body is not shown because it is too large.