<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Then the method assertJdomEquals in:</div><div> <a href="http://klein.activemath.org/svn/activemath-svn/src/org/activemath/omdocjdom/tests/MBaseRefTestingBase.java">http://klein.activemath.org/svn/activemath-svn/src/org/activemath/omdocjdom/tests/MBaseRefTestingBase.java</a></div><div><br class="webkit-block-placeholder"></div><div>is probably what you are looking for.</div><div><br class="webkit-block-placeholder"></div><div>Sorry, don't have much time to pack this as an isolated package.</div><div>But it'll be quite expensive or?</div><div>Doing this over SAX tastes more reasonable to me.</div><div><br class="webkit-block-placeholder"></div><div>paul</div><div><br class="webkit-block-placeholder"></div><br><div><div>Le 18 mars 08 à 14:59, <<a href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="Section1"><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">My objective to find duplicate xml files or elements & generate a report (PDF)<o:p></o:p></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div><div class="MsoNormal" align="center" style="text-align: center; margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>jdom-interest-bounces@jdom.org [<a href="mailto:jdom-interest-bounces@jdom.org">mailto:jdom-interest-bounces@jdom.org</a>]<span class="Apple-converted-space"> </span><b><span style="font-weight: bold; ">On Behalf Of<span class="Apple-converted-space"> </span></span></b>Paul Libbrecht<br><b><span style="font-weight: bold; ">Sent:</span></b><span class="Apple-converted-space"> </span>Tuesday, March 18, 2008 6:31 PM<br><b><span style="font-weight: bold; ">To:</span></b><span class="Apple-converted-space"> </span><a href="mailto:frode@fritid.as">frode@fritid.as</a>; <a href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</a> interest<br><b><span style="font-weight: bold; ">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [jdom-interest] Comparing two XML files using JDOM</span></font><o:p></o:p></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Oh but if it's just about equality, and not reporting differences, then I have already implemented one.<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Vijay, what was your objective?<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">paul<o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Le 18 mars 08 à 13:10,<span class="Apple-converted-space"> </span><a href="mailto:frode@fritid.as" style="color: blue; text-decoration: underline; ">frode@fritid.as</a><span class="Apple-converted-space"> </span>a écrit :<o:p></o:p></span></font></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><br><br><o:p></o:p></span></font></div><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">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><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <o:p></o:p></span></font></div></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <o:p></o:p></span></font></div></div><p style="margin-bottom: 12pt; margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><br><br></span></font><b><font size="1"><span style="font-size: 9pt; font-weight: bold; ">Paul Libbrecht <<a href="mailto:paul@activemath.org" style="color: blue; text-decoration: underline; ">paul@activemath.org</a>></span></font></b><br><font size="1"><span style="font-size: 9pt; ">Sent by:<span class="Apple-converted-space"> </span><a href="mailto:jdom-interest-bounces@jdom.org" style="color: blue; text-decoration: underline; ">jdom-interest-bounces@jdom.org</a></span></font><br><font size="1"><span style="font-size: 9pt; ">03/18/2008 11:09 AM</span></font><br><br> <font size="1"><span style="font-size: 9pt; ">To</span></font><span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span><font size="1"><span style="font-size: 9pt; "><<a href="mailto:vijayaraghavan.subramaniam@wipro.com" style="color: blue; text-decoration: underline; ">vijayaraghavan.subramaniam@wipro.com</a>></span></font><br> <font size="1"><span style="font-size: 9pt; ">cc</span></font><span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span><font size="1"><span style="font-size: 9pt; "><a href="mailto:jdom-interest@jdom.org" style="color: blue; text-decoration: underline; ">jdom-interest@jdom.org</a></span></font><br> <font size="1"><span style="font-size: 9pt; ">bcc</span></font><span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span><br> <font size="1"><span style="font-size: 9pt; ">Subject</span></font><span class="Apple-converted-space"> </span> <span class="Apple-converted-space"> </span><font size="1"><span style="font-size: 9pt; ">Re: [jdom-interest] Comparing two XML files using JDOM</span></font><br> <o:p></o:p></p><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Courier"><span style="font-size: 12pt; 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" style="color: blue; text-decoration: underline; ">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: 8pt; 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" style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="4" width="99%" align="left"></span></font></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" color="black" face="Times New Roman"><span style="font-size: 12pt; color: black; "><br></span></font><b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; font-weight: bold; ">From:</span></font></b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>Paul Libbrecht [<u><font color="blue"><span style="color: blue; "><a href="mailto:paul@activemath.org" style="color: blue; text-decoration: underline; ">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: 8pt; font-family: Tahoma; font-weight: bold; ">Sent:</span></font></b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>Tue 3/18/2008 2:08 PM</span></font><br><b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; font-weight: bold; ">To:</span></font></b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>Vijayaraghavan Subramaniam (WT01 - Technology,Media,Transportation&Services)</span></font><br><b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; font-weight: bold; ">Cc:</span></font></b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span><u><font color="blue"><span style="color: blue; "><a href="mailto:jdom-interest@jdom.org" style="color: blue; text-decoration: underline; ">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: 8pt; font-family: Tahoma; font-weight: bold; ">Subject:</span></font></b><font size="1" face="Tahoma"><span style="font-size: 8pt; font-family: Tahoma; "><span class="Apple-converted-space"> </span>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" style="color: blue; text-decoration: underline; ">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: 8pt; font-family: 'Trebuchet MS'; ">Hi All,</span></font><br><font size="1" face="Trebuchet MS"><span style="font-size: 8pt; 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: 8pt; font-family: 'Trebuchet MS'; ">Regards,</span></font><br><font size="1" face="Trebuchet MS"><span style="font-size: 8pt; 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" style="color: blue; text-decoration: underline; ">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" style="color: blue; text-decoration: underline; ">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></span></font><o:p></o:p></div><div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><smime.p7s><o:p></o:p></span></font></div></div></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div></div><p style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; ">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 style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; ">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 style="margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman'; ">www.wipro.com</p></span></blockquote></div><br></body></html>