Parse Xml Ruby

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