tags:

views:

234

answers:

2

What's the easiest way to see the difference between two xml files using?

I looked into Hpricot and Nokogiri but couldn't find any good comparison methods. I've also looked into unix tools like diffxml, but would rather use something in ruby.

Anybody got any ideas?

+1  A: 

What about diff.rb ?
You export your two xml documents to arrays and get the diff with that library.

Damien MATHIEU
A: 

I have the same question. I want to be able to verify that the docs are identical in some cases, and in some cases I'd like to be able to allow specific values to vary. This is for testing a rest service.

Joe McGlynn