Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diff two XML doc in Ruby? [duplicate]

Tags:

diff

xml

ruby

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?

like image 706
jpoz Avatar asked Nov 06 '22 19:11

jpoz


1 Answers

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

like image 156
Damien MATHIEU Avatar answered Nov 13 '22 16:11

Damien MATHIEU