# ActiveSupport and XML conversions help needed

**URL:** <https://www.ruby-forum.com/t/activesupport-and-xml-conversions-help-needed/111984>\
**Category:** Rails\
**Created:** [August 14, 2007, 1:29am UTC](https://www.ruby-forum.com/t/activesupport-and-xml-conversions-help-needed/111984 "2007-08-14T01:29:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![supasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@supasta](https://www.ruby-forum.com/u/supasta)\
**Post date:** [August 14, 2007, 1:29am UTC](https://www.ruby-forum.com/t/activesupport-and-xml-conversions-help-needed/111984/1 "2007-08-14T01:29:50Z")

</div>

I am using the to\_xml method on my AR object. The type for one of my  
fields is timestamp and the XML looks like the following.

Thu Aug 09 02:23:14 UTC 2007

I want the format to be the xmlschema format. I am looking at the  
XML\_TYPE\_NAMES in conversions.rb and I don’t see timestamp listed. I am  
new to Ruby/Rails and trying to figure out the correct way to expand the  
hash to include timestamp as an option. Also, how do I find out what  
the type name would be for the type timestamp? Would it be TimeStamp or  
Timestamp? The standard to\_xml is good enough for me except this one  
issue. I would rather not define a rxml.

Any suggestions would be great!

Thanks  
CW
