Link to home
Start Free TrialLog in
Avatar of paddykool
paddykool

asked on

XML diff tool required!!

Hi all,

I'm in the middle of writing a testing framework and I need to write a function that will take 2 XML files and compare them.

So, basically my needs are I need to create a function that will take in the following parameters:-
 * The 2 file locations
 * The elements to find within each XML file and only compare these elements
 * Possibly the XPATH to these elements if there are multiple occurances

Output from the function will be Pass or Fail, if Fail, then the inconsistent line in each file will be output as well.


All this I have to do using VBScript
Now, what my initial thoughs on this are, set up a function that takes in the above parameters, then passes these parameters to an xml diff tool (using the command line), then retrieves the results back from the tool.

Anyone got any idea of a tool that can do this that open source?!?

All info greatly appreciated on this.
Many thanks.

Avatar of HyperBPP
HyperBPP

The tool by MS can produce a diffgram which contains all the differences between two documents.

http://msdn.microsoft.com/en-us/library/aa302294.aspx
ASKER CERTIFIED SOLUTION
Avatar of HyperBPP
HyperBPP

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paddykool

ASKER

Cheers,

This should get me started.