# XML file comparison

**URL:** <https://www.ruby-forum.com/t/xml-file-comparison/161425>\
**Category:** Ruby\
**Created:** [February 26, 2009, 11:41am UTC](https://www.ruby-forum.com/t/xml-file-comparison/161425 "2009-02-26T11:41:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![indium](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/35a633/32.png) [@indium](https://www.ruby-forum.com/u/indium)\
**Post date:** [February 26, 2009, 11:41am UTC](https://www.ruby-forum.com/t/xml-file-comparison/161425/1 "2009-02-26T11:41:52Z")

</div>

Hi,

I need to compare XML files. Is there any quick way to do this in ruby  
or please  
share the code snippet. Kindly help me in this

Thanks,  
Venkat

---

<div class="post-metadata">

**Author:** ![indium](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/35a633/32.png) [@indium](https://www.ruby-forum.com/u/indium)\
**Post date:** [February 26, 2009, 12:37pm UTC](https://www.ruby-forum.com/t/xml-file-comparison/161425/2 "2009-02-26T12:37:53Z")

</div>

Hi,

You can use xmldiff . (Linux)  
For windows you can install cywin (linux client) and run xmldiff

Luc.

---

<div class="post-metadata">

**Author:** ![indium](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/35a633/32.png) [@indium](https://www.ruby-forum.com/u/indium)\
**Post date:** [February 26, 2009, 2:35pm UTC](https://www.ruby-forum.com/t/xml-file-comparison/161425/3 "2009-02-26T14:35:50Z")

</div>

Venkat K. wrote:

> I need to compare XML files. Is there any quick way to do this in ruby  
> or please  
> share the code snippet. Kindly help me in this

Google for “xslt diff”, add an XSLT file to your project, and use it as  
a template.

Bulk manipulation of XML is XSLT’s job.
