# Rails XML samples

**URL:** <https://www.ruby-forum.com/t/rails-xml-samples/135386>\
**Category:** Rails\
**Created:** [April 21, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/rails-xml-samples/135386 "2008-04-21T19:23:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 21, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/rails-xml-samples/135386/1 "2008-04-21T19:23:12Z")

</div>

I am looking for examples of Rails sites that deliver and consume xml,  
specifically with nested resources; for example, an invoice header and  
related invoice details. I would like examples that expose both the  
model and controller code so that I can see how this is wired up.

I am preparing a transfer of legacy data to a new rails app and I am  
contemplating using the existing system’s report generator to produce an  
xml document with the necessary attributes arranged and tagged for the  
new data structure. However, I need to see how this works in practice.

If anyone has recommendations I would greatly appreciate viewing them.
