Posted: Tue Sep 04, 2007 10:04 pm Post subject: Open Source XML comparison tools
Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
I was currently working on the migration of some flows from V2.1 to V6.0.
After the flows and message sets were successfully migrated I wanted to test all the V2.1 test cases against V6.0. The output messages were all XML. I have a Java program that reads from a file in a specified directory and writes to a queue and another that reads a queue and writes to a file in a specified directory.
After running all the test cases on both V2.1 & V6.0 I have an equal number of messages from both versions and I now need to compare both sets of output.
Since output is in XML I have used XMLSpy to perform a directory wise comparison.
In trying to automate this whole process I am facing two roadblocks:
1. XMLSpy is not freeware
2. XMLSpy comparison tool cannot be invoked from command line.
What I wanted to know if there are any freeware/open source XML comparison tools that can be invoked from command line/ batch file so that the whole process can be automated and the net output will be a file with the results of the comparison.
Is there any other apoproach/ better way to do this? _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
may be if you have time..(which is where i always lack) you can think of writing some perl scripts and doing the comparison...
there are a couple of freeware tools available (search on google) but not sure which one can be invoked from command line to give you desired result _________________ Cheers
I think eclipse provides an 'xml compare plug-in'....apart from that there should be something from Sun also...perhaps you should try a search...you should be able to use API to do the comparison.
We are currently using something similar, so you can be sure it's out there somewhere...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum