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.

paddykoolAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HyperBPPCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
paddykoolAuthor Commented:
Cheers,

This should get me started.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.