XML to object mapping library. I have included examples to help get you going. The specs should also point you in the right direction.
Easy to define xml attributes and elements for an object
Fast because it uses libxml-ruby under the hood
Automatic conversion of xml to defined objects
Here is a simple example that maps Twitter statuses and users.
classUserincludeHappyMapperelement:id, Integerelement:name, Stringelement:screen_name, Stringelement:location, Stringelement:description, Stringelement:profile_image_url, Stringelement:url, Stringelement:protected, Booleanelement:followers_count, IntegerendclassStatusincludeHappyMapperelement:id, Integerelement:text, Stringelement:created_at, Timeelement:source, Stringelement:truncated, Booleanelement:in_reply_to_status_id, Integerelement:in_reply_to_user_id, Integerelement:favorited, Booleanhas_one:user, Userend
See examples directory in the gem for more examples.
github.com/jnunemaker/happymapper/tree/master/examples/
gem install happymapper