S
s.ross
I posted this on Nabble but don't think it made it through to the
list. Here's the q:
I can use the xmlrpc library to call a remote Web Service, but the
results appear always to be returned as an XML stream. The code
implies that the xml is parsed, and doing some messing with it in irb
shows that at some level, the result value can be treated as a hash.
I'm unable to determine to what extent. Consider a result such as:
<fineWebServiceResponse>
<itemList>
<item thingieId="1" />
<item thingieId="2" />
<item thingieId="3" />
</itemList>
</fineWebServiceResponse>
How do I get this into a parsed form such as a hash or array or
arrays? Or more correctly, what is the best way of iterating this data?
Thanks
list. Here's the q:
I can use the xmlrpc library to call a remote Web Service, but the
results appear always to be returned as an XML stream. The code
implies that the xml is parsed, and doing some messing with it in irb
shows that at some level, the result value can be treated as a hash.
I'm unable to determine to what extent. Consider a result such as:
<fineWebServiceResponse>
<itemList>
<item thingieId="1" />
<item thingieId="2" />
<item thingieId="3" />
</itemList>
</fineWebServiceResponse>
How do I get this into a parsed form such as a hash or array or
arrays? Or more correctly, what is the best way of iterating this data?
Thanks