[jdom-interest] Comparing two XML files using JDOM
Paul Libbrecht
paul at activemath.org
Tue Mar 18 07:05:41 PDT 2008
Then the method assertJdomEquals in:
http://klein.activemath.org/svn/activemath-svn/src/org/activemath/
omdocjdom/tests/MBaseRefTestingBase.java
is probably what you are looking for.
Sorry, don't have much time to pack this as an isolated package.
But it'll be quite expensive or?
Doing this over SAX tastes more reasonable to me.
paul
Le 18 mars 08 à 14:59, <vijayaraghavan.subramaniam at wipro.com> a écrit :
> My objective to find duplicate xml files or elements & generate a
> report (PDF)
>
> From: jdom-interest-bounces at jdom.org [mailto:jdom-interest-
> bounces at jdom.org] On Behalf Of Paul Libbrecht
> Sent: Tuesday, March 18, 2008 6:31 PM
> To: frode at fritid.as; jdom-interest at jdom.org interest
> Subject: Re: [jdom-interest] Comparing two XML files using JDOM
>
> Oh but if it's just about equality, and not reporting differences,
> then I have already implemented one.
>
> Vijay, what was your objective?
>
> paul
>
>
> Le 18 mars 08 à 13:10, frode at fritid.as a écrit :
>
>
> XMLUnit does comparisons, and you can plug in differnce-listners
> that can 'simulate' equal values even if they're not
>
>
>
>
>
> Paul Libbrecht <paul at activemath.org>
> Sent by: jdom-interest-bounces at jdom.org
> 03/18/2008 11:09 AM
>
> To <vijayaraghavan.subramaniam at wipro.com>
> cc jdom-interest at jdom.org
> bcc
> Subject Re: [jdom-interest] Comparing two XML files using JDOM
>
>
> 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).
> 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.
>
> I have made no tests with big files.
> Do you have a solution to propose?
> Do others?
>
> paul
>
> Le 18 mars 08 à 09:47, <vijayaraghavan.subramaniam at wipro.com> a
> écrit :
>
> Paul,
> How about performance for parsing/comparing two large XML
> documents using 3dm tool?
> Vijay
>
>
> From: Paul Libbrecht [mailto:paul at activemath.org]
> Sent: Tue 3/18/2008 2:08 PM
> To: Vijayaraghavan Subramaniam (WT01 -
> Technology,Media,Transportation&Services)
> Cc: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] Comparing two XML files using JDOM
>
> 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.
>
> paul
>
>
> Le 18 mars 08 à 07:50, <vijayaraghavan.subramaniam at wipro.com> a
> écrit :
>
> Hi All,
> Is there any utility class exists in JDOM to compare two XML files.
> Regards,
> Vijay
>
> 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.
>
> 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.
>
> www.wipro.com
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/
> youraddr at yourhost.com
>
> 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.
>
> 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.
>
> www.wipro.com
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/
> youraddr at yourhost.com
> <smime.p7s>
>
> 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.
>
> 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.
>
> www.wipro.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20080318/5f11d422/attachment.htm
More information about the jdom-interest
mailing list