| |
NWRUG |
Hi -- I have a custom ActiveResource action that returns the following xml: "<result>\n <successes>\n <1>a082000000HqJzUAAV</1>\n Is there a quick & easy way to turn this into the following hash? { "result" { "successes" => { "1" => "a082000000HqJzUAAV", "2" => Or should I go off & learn hpricot like I've been meaning to for ~3 years?
<2>a082000000HqJzsAAF</2>\n <3>a082000000HqJzVAAV</3>\n </successes>\n
<failures>\n </failures>\n</result>\n"
"a082000000HqJzsAAF", "3" => "a082000000HqJzVAAV" }, "failures" => {} }
Cheers,
Doug.