The DecisionSoft xmldiff tool should fulfill your requirements. There is an option for standard diff output, along with colored output, html output etc. You will also need to download xmlpp, an xml pretty printer. Both are available (with source) for free from here:

http://software.decisionsoft.com/tools.html

For a quick demo you can try out the web version:

http://tools.decisionsoft.com/xmldiff.html

Enjoy

Mike



Paul Libbrecht wrote:
I think I know there is an xmldiff tool somewhere. That can be useful.

I would be interested by your results as well. In particular, I'd be interested to notions of patches similar to XUpdate.

As of formatters, I think the sample called SAXWriter (used to be in Xerces 1.4) performs exactly this.

Paul

On Lundi, ao�t 5, 2002, at 08:56 , Christopher Ebert wrote:


Hi,

I don't know of an API -- I would suggest using a formatter and comparing text files. Use system calls if you have to do it from Java -- it will be much easier to get diff-like output if you just use diff :). I know that XML Spy will format XML if you write it out; there must be a command-line formatter either as part of the XML Spy suite or somewhere.

    Good luck,

    Chris


-----Original Message----- From: Suresh Babu Koya [mailto:[EMAIL PROTECTED] Sent: Sunday, July 28, 2002 11:37 PM To: [EMAIL PROTECTED] Subject: XML Difference API


Greetings all,

   Is there any API/libraries for differencing XML files with/without
whitespaces.

I just need some API that could let me know
1. Any differences between XML files in Diff format(Unix diff command).
2. A boolean(true) if there are no differences and XML files are identical.


--Suresh



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Michael McKay, Client Services        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to