I want to take an XML file (example is http://xboxapi.duncanmackenzie.net/gamertag.ashx?Gamertag=xpaulbettsx) and just turn it into a Ruby dictionary / ExpandoObject type thing, so I can do something like
gamertag_info = HowDoIDoThisPart.load("Example.xml")
puts gamertag_info.zone
>>> "Underground"
puts gamertag_info.recentgames
>>> <Array output>
I know that there's an easy way to do this - any clues?