[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Compring two XML docs from Java


compare two xml docs
Toivo,

If you just need to know if there are changes, I suggest you use a 
tool to generate canonical XML from your files and then do a 'diff'. 
There are tools available for this I believe.

More difficult is finding out what has changed and representing the 
result in XML, which is what DeltaXML does. You can use this on small 
files on our web service for free (see online demo at 
http://www.deltaxml.com). DeltaXML reads the file in expanding 
entities etc from a DTD and then does the comparison - you can filter 
with XSL to ignore whitespace or do any other things such as indicate 
'keys' and even which elements are not ordered.

We'd be please to discuss your use of DeltaXML - it is a commercial 
product but we offer a complete solution to your problem and our 
customers say they could not find anything else that did this... 
there are several years of R&D behind this - the problem is not 
trivial (you have probably found that out by now!).

Best regards,
Robin

At 11:32 am -0800 10/2/02, Toivo Lainevool wrote:
>Does anybody know of a utility/library to compare to XML docs
>programmatically from Java?  I want to be able to do a comparison that
>will ignore syntactic things like extraneous whitespace, namespace
>prefix differences, attribute order, etc.  I don't need to know what the
>differences are, just a binary same/different answer will do.
>
>Here are my requirements:
>
>- Free, or even better, open source
>- Uses a standard API such as DOM, SAX or JDom
>- Callable from Java
>
>I've checked out IBM's alphaworks XMLTreeDiff, but it requires an old
>version of xml4j, which isn't an option.
>
>I've also seen DeltaXML, but it's a commercial product.
>
>Thanks,
>
>Toivo Lainevool
>New Iron Systems, Inc.
>
>(Sorry if this get posted twice, I sent it yesterday with no results.)
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this list use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>


-- 
-- -----------------------------------------------------------------
Robin La Fontaine, Director, Monsell EDM Ltd
DeltaXML: "Change control for XML in XML"
Tel: +44 1684 592 144 Fax: +44 1684 594 504
Email: robin.lafontaine@d...      http://www.deltaxml.com

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.