<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Oh but if it's just about equality, and not reporting differences, then I have already implemented one.</div><div><br class="webkit-block-placeholder"></div><div>Vijay, what was your objective?</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 à 13:10, <a href="mailto:frode@fritid.as">frode@fritid.as</a> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>XMLUnit does comparisons, and you can plug in differnce-listners that can 'simulate' equal values even if they're not</p><div> <br class="khtml-block-placeholder"></div><div> <br class="khtml-block-placeholder"></div><p><br><br><font size="2" style="font-size:9pt"><b>Paul Libbrecht <<a href="mailto:paul@activemath.org">paul@activemath.org</a>></b></font><br><font size="2" style="font-size:9pt">Sent by: <a href="mailto:jdom-interest-bounces@jdom.org">jdom-interest-bounces@jdom.org</a></font><br><font size="2" style="font-size:9pt">03/18/2008 11:09 AM</font><br><br> <font size="2" style="font-size:9pt">To</font> <font size="2" style="font-size:9pt"><<a href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a>></font><br> <font size="2" style="font-size:9pt">cc</font> <font size="2" style="font-size:9pt"><a href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</a></font><br> <font size="2" style="font-size:9pt">bcc</font> <br> <font size="2" style="font-size:9pt">Subject</font> <font size="2" style="font-size:9pt">Re: [jdom-interest] Comparing two XML files using JDOM</font><br> <br><br></p><p><font face="Monospace,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).</font><br><font face="Monospace,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.</font><br><br><font face="Monospace,Courier">I have made no tests with big files.</font><br><font face="Monospace,Courier">Do you have a solution to propose?</font><br><font face="Monospace,Courier">Do others?</font><br><br><font face="Monospace,Courier">paul</font><br><br><font face="Monospace,Courier">Le 18 mars 08 à 09:47, <</font><font color="BLUE" face="Monospace,Courier"><u><a href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a></u></font><font color="BLACK" face="Monospace,Courier">> a écrit :</font><br><br><font size="2" style="font-size:8pt" face="Trebuchet MS">Paul,</font><br><font face="Monospace,Courier">How about performance for parsing/comparing two large XML documents using 3dm tool?</font><br><font face="Monospace,Courier">Vijay</font><br></p><hr width="99%" size="4" align="left"><font color="BLACK"><br></font><font size="2" style="font-size:8pt" face="Tahoma"><b>From:</b> Paul Libbrecht [</font><font size="2" style="font-size:8pt" color="BLUE" face="Tahoma"><u><a href="mailto:paul@activemath.org">mailto:paul@activemath.org</a></u></font><font size="2" style="font-size:8pt" color="BLACK" face="Tahoma">]</font><br><font size="2" style="font-size:8pt" face="Tahoma"><b>Sent:</b> Tue 3/18/2008 2:08 PM</font><br><font size="2" style="font-size:8pt" face="Tahoma"><b>To:</b> Vijayaraghavan Subramaniam (WT01 - Technology,Media,Transportation&Services)</font><br><font size="2" style="font-size:8pt" face="Tahoma"><b>Cc:</b> </font><font size="2" style="font-size:8pt" color="BLUE" face="Tahoma"><u><a href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</a></u></font><font color="BLACK"><br></font><font size="2" style="font-size:8pt" face="Tahoma"><b>Subject:</b> Re: [jdom-interest] Comparing two XML files using JDOM</font><br><br><font face="Monospace,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.</font><br><br><font face="Monospace,Courier">paul</font><br><br><br><font face="Monospace,Courier">Le 18 mars 08 à 07:50, <</font><font color="BLUE" face="Monospace,Courier"><u><a href="mailto:vijayaraghavan.subramaniam@wipro.com">vijayaraghavan.subramaniam@wipro.com</a></u></font><font color="BLACK" face="Monospace,Courier">> a écrit :</font><br><br><font size="2" style="font-size:8pt" face="Trebuchet MS">Hi All,</font><br><font size="2" style="font-size:8pt" face="Trebuchet MS">Is there any utility class exists in JDOM to compare two XML files.</font><br><font size="2" style="font-size:8pt" face="Trebuchet MS">Regards,</font><br><font size="2" style="font-size:8pt" face="Trebuchet MS">Vijay</font><br><br><font face="Monospace,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.</font><br><br><font face="Monospace,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.</font><br><br><font face="Monospace,Courier">www.wipro.com</font><br><font face="Monospace,Courier">_______________________________________________</font><br><font face="Monospace,Courier">To control your jdom-interest membership:</font><br><font color="BLUE" face="Monospace,Courier"><u><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></u></font><font color="BLACK"><br><br></font><font face="Monospace,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.</font><br><br><font face="Monospace,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.</font><br><br><font face="Monospace,Courier">www.wipro.com</font><br><br><br><font face="Monospace,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></font><div><span><smime.p7s></span></div></blockquote></div><br></body></html>