From: "darenbell@..." Date: 2006-11-17T07:10:08+09:00 Subject: Ruby newbie & XML - What's the simplest way to get XML data into a hash? Sorry for having such a specific question, but is there a simple way to take the XML document below and put it into some sort of organized hash value without first knowing anything about it? This is an easy job using something like XML::Simple in Perl, but for the life of me, I can't figure out an easy way to do this in Ruby. I'm thinking of some sort of data structure like so: environment=>authentication=>adminGroup=>description=>'NULL' environment=>authentication=>adminGroup=>dataType=>'NULL' environment=>authentication=>adminGroup=>value=>'NULL' etc... environment=>database=>databaseHost=>description=>'NULL' environment=>database=>databaseHost=>dataType=>'NULL' etc... XML document: NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL TIA