# Create rxml file

**URL:** <https://www.ruby-forum.com/t/create-rxml-file/156734>\
**Category:** Rails\
**Created:** [January 2, 2009, 7:37am UTC](https://www.ruby-forum.com/t/create-rxml-file/156734 "2009-01-02T07:37:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brijesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Post date:** [January 2, 2009, 7:37am UTC](https://www.ruby-forum.com/t/create-rxml-file/156734/1 "2009-01-02T07:37:47Z")

</div>

Hi All

#controller:  
@users=User.find(:all,:conditions=\>[“id=12”])  
@faxs=FaxService.find(:all,:conditions=\>["user\_id=12 "])

My view is generate like this:

\<?xml version="1.0" encoding="UTF-8"?\> 303 302 301 305 US removed\_email\_address@domain.invalid 12 4087723792

But i want like this  
#View .rxml

\<?xml version="1.0" encoding="UTF-8"?\> US removed\_email\_address@domain.invalid 12 4087723792 \< access\_number\_id type="integer"\>303 302 301 305 

can some one tell me how to generate xml file?
