Is reading xml simple in rails or converting it to hash will be simpler?

Posted by Salil on Stack Overflow See other posts from Stack Overflow or by Salil
Published on 2010-04-07T06:17:34Z Indexed on 2010/04/07 6:23 UTC
Read the original article Hit count: 551

Hi All,

Sorry for this question but after spending 1-2 hours on how to read xml, i thought posting it on forum will be better.
So i get a complex (very large)xml response from the plugin trackify. i want to read some values form it so i covert it into hash and then read it as follows For ex:- to read city

@tracking_info['TrackResponse']['Shipment']['ShipTo']['Address']['City'] #>>  "SEATTLE"


my question is it proper way to getting xml response or there are some xml methods which is simple to use?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about ruby-on-rails