[
Lists Home |
Date Index |
Thread Index
]
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@deltaxml.com http://www.deltaxml.com
|