Subject: | Bug in XML::SemanticCompare |
Date: | Sat, 12 Apr 2014 14:56:02 +0100 |
To: | <bug-XML-SemanticCompare [...] rt.cpan.org> |
From: | "Ivan Dmitriev" <ivan [...] hbel.co.uk> |
Hello,
I came across this bug when I was comparing two different xml files a.xml
and b.xml
a.xml:
<a>
<b></b>
<b></b>
</a>
b.xml
<a>
<b></b>
<b><c/></b>
</a>
Perl code:
use XML::SemanticCompare;
my $x = XML::SemanticCompare->new;
print "identical\n" if $x->compare("a.xml","b.xml");
The output:
Identical
perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built for x86_64-linux
perl -MXML::SemanticCompare -e'print $XML::SemanticCompare::VERSION'
1.01
uname -a
Linux donafe.net 2.6.18-348.16.1.el5 #1 SMP Wed Aug 21 04:00:25 EDT 2013
x86_64 x86_64 x86_64 GNU/Linux