analyse xml rubis

xml = File.open("myfile.xml")
data = Hash.from_xml(xml)
Confused Cassowary