# Reading "created\_at" from XML

**URL:** <https://www.ruby-forum.com/t/reading-created-at-from-xml/133769>\
**Category:** Rails\
**Created:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/reading-created-at-from-xml/133769 "2008-04-03T12:05:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/reading-created-at-from-xml/133769/1 "2008-04-03T12:05:32Z")

</div>

I’m having trouble printing the “created\_at” from the parent application  
(I’m using ActiveResource).

I noticed the XML document replaces all underscores with dashes (i.e.  
created\_at is transformed to created-at).

Other data – like post.title, post.body, post.author – print out fine;  
only post.created\_at doesn’t.

Any idea on how to correctly print out post.created\_at from the XML?
