<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue style='word-wrap: break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>My objective to find duplicate xml files
or elements & generate a report (PDF)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
jdom-interest-bounces@jdom.org [mailto:jdom-interest-bounces@jdom.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Paul Libbrecht<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, March 18, 2008 6:31
PM<br>
<b><span style='font-weight:bold'>To:</span></b> frode@fritid.as;
jdom-interest@jdom.org interest<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [jdom-interest]
Comparing two XML files using JDOM</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Oh but if it's just about equality, and not reporting differences, then
I have already implemented one.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Vijay, what was your objective?<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>paul<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Le 18 mars 08 à 13:10, <a href="mailto:frode@fritid.as">frode@fritid.as</a>
a écrit :<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>XMLUnit
does comparisons, and you can plug in differnce-listners that can 'simulate'
equal values even if they're not<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<p style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br>
</span></font><b><font size=1><span style='font-size:9.0pt;font-weight:bold'>Paul
Libbrecht <<a href="mailto:paul@activemath.org">paul@activemath.org</a>></span></font></b><br>
<font size=1><span style='font-size:9.0pt'>Sent by: <a
href="mailto:jdom-interest-bounces@jdom.org">jdom-interest-bounces@jdom.org</a></span></font><br>
<font size=1><span style='font-size:9.0pt'>03/18/2008 11:09 AM</span></font><br>
<br>
<font size=1><span style='font-size:9.0pt'>To</span></font> <font
size=1><span style='font-size:9.0pt'><<a
href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a>></span></font><br>
<font size=1><span style='font-size:9.0pt'>cc</span></font> <font
size=1><span style='font-size:9.0pt'><a href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</a></span></font><br>
<font size=1><span style='font-size:9.0pt'>bcc</span></font> <br>
<font size=1><span style='font-size:9.0pt'>Subject</span></font> <font
size=1><span style='font-size:9.0pt'>Re: [jdom-interest] Comparing two XML
files using JDOM</span></font><br>
<o:p></o:p></p>
<p><font size=3 face=Courier><span style='font-size:12.0pt;font-family:Courier'>Mmmh...
I doubt there... it's all loaded in memory, just as JDOM. Both seem to be
somewhat lightweight though (compared to monsters such as Xerces' DOM).</span></font><br>
<font face=Courier><span style='font-family:Courier'>You'd need quite an
elaborate diff engine to do something that does not load in memory, SAX or even
StAX parsing is not enough there since you may need to go backwards.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>I have made no tests with
big files.</span></font><br>
<font face=Courier><span style='font-family:Courier'>Do you have a solution to
propose?</span></font><br>
<font face=Courier><span style='font-family:Courier'>Do others?</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>paul</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>Le 18 mars 08 à 09:47,
<<u><font color=blue><span style='color:blue'><a
href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a></span></font></u><font
color=black><span style='color:black'>> a écrit :</span></font></span></font><br>
<br>
<font size=1 face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS"'>Paul,</span></font><br>
<font face=Courier><span style='font-family:Courier'>How about performance
for parsing/comparing two large XML documents using 3dm tool?</span></font><br>
<font face=Courier><span style='font-family:Courier'>Vijay</span></font><o:p></o:p></p>
<div class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>
<hr size=4 width="99%" align=left>
</span></font></div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'><br>
</span></font><b><font size=1 face=Tahoma><span style='font-size:8.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=1
face=Tahoma><span style='font-size:8.0pt;font-family:Tahoma'> Paul Libbrecht [<u><font
color=blue><span style='color:blue'><a href="mailto:paul@activemath.org">mailto:paul@activemath.org</a></span></font></u><font
color=black><span style='color:black'>]</span></font></span></font><br>
<b><font size=1 face=Tahoma><span style='font-size:8.0pt;font-family:Tahoma;
font-weight:bold'>Sent:</span></font></b><font size=1 face=Tahoma><span
style='font-size:8.0pt;font-family:Tahoma'> Tue 3/18/2008 2:08 PM</span></font><br>
<b><font size=1 face=Tahoma><span style='font-size:8.0pt;font-family:Tahoma;
font-weight:bold'>To:</span></font></b><font size=1 face=Tahoma><span
style='font-size:8.0pt;font-family:Tahoma'> Vijayaraghavan Subramaniam (WT01 -
Technology,Media,Transportation&Services)</span></font><br>
<b><font size=1 face=Tahoma><span style='font-size:8.0pt;font-family:Tahoma;
font-weight:bold'>Cc:</span></font></b><font size=1 face=Tahoma><span
style='font-size:8.0pt;font-family:Tahoma'> <u><font color=blue><span
style='color:blue'><a href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</a></span></font></u></span></font><font
color=black><span style='color:black'><br>
</span></font><b><font size=1 face=Tahoma><span style='font-size:8.0pt;
font-family:Tahoma;font-weight:bold'>Subject:</span></font></b><font size=1
face=Tahoma><span style='font-size:8.0pt;font-family:Tahoma'> Re:
[jdom-interest] Comparing two XML files using JDOM</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>I've never found such but
3dm is a tool that can do XML diffing and with a few lines of code you plug the
jdom document through a sax stream into 3dm.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>paul</span></font><br>
<br>
<br>
<font face=Courier><span style='font-family:Courier'>Le 18 mars 08 à 07:50,
<<u><font color=blue><span style='color:blue'><a
href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a></span></font></u><font
color=black><span style='color:black'>> a écrit :</span></font></span></font><br>
<br>
<font size=1 face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS"'>Hi
All,</span></font><br>
<font size=1 face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS"'>Is
there any utility class exists in JDOM to compare two XML files.</span></font><br>
<font size=1 face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS"'>Regards,</span></font><br>
<font size=1 face="Trebuchet MS"><span style='font-size:8.0pt;font-family:"Trebuchet MS"'>Vijay</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>The information contained
in this electronic message and any attachments to this message are intended for
the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should
not disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>WARNING: Computer viruses
can be transmitted via email. The recipient should check this email and any attachments
for the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>www.wipro.com</span></font><br>
<font face=Courier><span style='font-family:Courier'>_______________________________________________</span></font><br>
<font face=Courier><span style='font-family:Courier'>To control your
jdom-interest membership:</span></font><br>
<u><font color=blue face=Courier><span style='font-family:Courier;color:blue'><a
href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></span></font></u><font
color=black><span style='color:black'><br>
<br>
</span></font><font face=Courier><span style='font-family:Courier'>The
information contained in this electronic message and any attachments to this
message are intended for the exclusive use of the addressee(s) and may contain
proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>WARNING: Computer viruses
can be transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.</span></font><br>
<br>
<font face=Courier><span style='font-family:Courier'>www.wipro.com</span></font><br>
<br>
<br>
<font face=Courier><span style='font-family:Courier'>_______________________________________________<br>
To control your jdom-interest membership:<br>
<a
href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></span></font><o:p></o:p></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><smime.p7s><o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<p>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.</p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.</p>
<p>www.wipro.com</p>
</body>
</html>