Nikolay Pavlov
9/3/2007 4:51:00 PM
Hello all.
I have this XML output:
<response>
<num></num>
<token></token>
<operation id="some id" sid="some sid">
<trans></trans>
<data></data>
</operation>
<operation id="other id" sid="other sid"
<trans></trans>
<data></data>
</operation>
...
</response>
Could someone point me to the way on how i can get construction like this
one from the XML above:
{:num => value,
:token => value,
:operation => [{:id => value,
:sid => value,
:trans => value,
:data => value },
{:id => value,
:sid => value,
:trans => value,
:data => value}]
}
The initial hash part was trivial for me, but while i am thinking about an
array part my brain says me "stack level too deep" :)
--
======================================================================
- Best regards, Nikolay Pavlov. <<<-----------------------------------
======================================================================