For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > September 2006 > XML Diff









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML Diff
Dometz

2006-09-01, 6:57 pm

Hi,

What I am trying to do is the following:
I have two xml docs:
XML doc 1 (X1):
<foo>
<bar>
barr
</bar>
<par/>
</foo>

XML doc 2 (X2):
<foo>
<bar>
barr
</bar>
</foo>

So, I can use http://search.cpan.org/~khampton/XML-SemanticDiff/ to get
the differences between the two XML docs but what I really want is to
tag the differences in the XML themselves.
So, since X1 has par but X2 doesnt, I want to create a new X1_2 (or add
to the existing) that looks something like
<foo>
<bar>
barr
</bar>
<par flag="diff"/>
</foo>

What I therefore need is to get a reference to each tag that is
different.

Any suggestions on how to do this?

thanks,

dometz

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com