# Creating customize XML

**URL:** <https://www.ruby-forum.com/t/creating-customize-xml/133070>\
**Category:** Rails\
**Created:** [March 27, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/creating-customize-xml/133070 "2008-03-27T13:02:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ekta](https://www.ruby-forum.com/u/ekta)\
**Post date:** [March 27, 2008, 1:02pm UTC](https://www.ruby-forum.com/t/creating-customize-xml/133070/1 "2008-03-27T13:02:03Z")

</div>

I have database in MYSQL, from its two table , I want to create XML.

I extracted the data from the table A using active record and that  
data can be saved in another table in the form of XML also.

But inside the extracted data, I want to replace ids with the name  
provided in table B.

But the customizing the XML is notworking . Please help me on this.

Thanks  
Ekta  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![ekta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/76d3ee/32.png) [@ekta](https://www.ruby-forum.com/u/ekta)\
**Post date:** [March 27, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/creating-customize-xml/133070/2 "2008-03-27T14:07:59Z")

</div>

On 27 Mar 2008, at 13:01, Freg wrote:

> I have database in MYSQL, from its two table , I want to create XML.
> 
> I extracted the data from the table A using active record and that  
> data can be saved in another table in the form of XML also.
> 
> But inside the extracted data, I want to replace ids with the name  
> provided in table B.
> 
> But the customizing the XML is notworking . Please help me on this.

Generate a view myview.xml.builder (notice the builder extension at  
the end) or in Rails \< 2 .rxml and use builder to generate your xml.

This link provides some examples:  
[http://snippets.dzone.com/tag/rxml](http://snippets.dzone.com/tag/rxml)

Best regards

Peter De Berdt
