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.

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

paddykoolAuthor Commented:

This should get me started.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.