From: Srijayanth Sridhar Date: 2008-06-13T22:35:44+09:00 Subject: Using element's text content as keys from xmlsimple Hello, I have: Dave John I am using xmlsimple to parse something in that format and I want b organized with the content as keys and weight as values. Is there any easy way to do this? I've been trying hard with all the options that xmlsimple provides like { KeyAttr => { 'a' => 'b', 'b' => 'content' } }...but none of what I've really tried works. This problem is a small part of a larger problem. The larger problem is to parse the entire xml into a hash. xmlsimple does it, but with this problem in place. Can anyone suggest alternatives/ideas? Thank you, J