CC: | "bug-XML-DifferenceMarkup [...] rt.cpan.org" <bug-XML-DifferenceMarkup [...] rt.cpan.org> |
Subject: | XML::DifferenceMarkup $VERSION = '1.03'; |
Date: | Wed, 21 Sep 2011 13:52:12 +0000 |
To: | "vbar [...] comp.cz" <vbar [...] comp.cz>, "mangrove [...] mangrove.cz" <mangrove [...] mangrove.cz> |
From: | "GIBSON, DANNY" <DG4305 [...] att.com> |
Good day Vaclav,
I hope this email finds you well.
I have a problem with XML::DifferenceMarkup and I am hoping you might find time to take a look at something that is causing me an issue. I use your module to create a make_diff but I am seeing a result that appears to be incorrect and I can't seem to understand why. I have attached the two xml docs that I am running the make_diff against as well as the small snippet of code used to call the two files. The issue appears to be that the make_diff is confused and can't determine that the element <INSTANCE name="PM_VRTSlog-EMOC"> is a completely new element but displays it as an <INSTANCE name="PM_VRTSlog-EMOC" dm:update="INSTANCE"> which isn't correct and as well showing <dm:delete> to sub elements where none exist in the old doc and also missing other sub-elements.
I also have attached the output of the make_diff.
If you run a make_diff against the old doc versus the new doc I believe you will see what I mean.
`makeDiff old_xml new_xml`
The snippet of perl code I am using to make_diff is as follows:
#!/home/p1aldbw1/aldb/perl-5.12.2/bin/perl
# makeDiff old new
use XML::DifferenceMarkup qw(make_diff);
use XML::LibXML;
my $fname1 = $ARGV[0];
my $fname2 = $ARGV[1];
my $parser = XML::LibXML->new();
$parser->keep_blanks(0);
my $d1 = $parser->parse_file($fname1);
my $d2 = $parser->parse_file($fname2);
my $dom = make_diff($d1, $d2);
print $dom->toString(1);
Please let me know and thank you very much in advance,
Danny
Danny Gibson
Principal-Systems Administrator
Sr Team Lead Patrol and TelAlert
BMCS-CE- Patrol Central Architecture # 4769
BMCS-CE- Patrol for Performance Assurance # 4932
AT&T Services, Inc.
(903) 628-7237 Office
(253) 679-9683 Fax
(214) 205-0347 Cell
dg4305@att.com<mailto:dg4305@att.com>
2142050347@txt.att.net<mailto:2142050347@txt.att.com>
NOTICE: This e-mail message is confidential and intended only for the named recipients above for AT&T Business. DO NOT FORWARD this message without the approval of the sender. If you have received this message in error, please notify the sender and delete this e-mail immediately. Thank you.
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.