All, I have read manyother other posts and have not been able to quite get a handle on this. I am pulling data form a web service and i am returned the following XML:
$VAR1 = {
'error' => 'EndOfResults',
'model-responses' => {
'model' => [
{
'attribute' => {
'content' => 'wltvbswfc02',
'id' => '0x1006e'
},
'mh' => '0x100540'
},
{
'attribute' => {
'content' => 'wltvsutm1ds02',
'id' => '0x1006e'
},
'mh' => '0x100c80'
},
{
'attribute' => {
'content' => 'wltvsdora03',
'id' => '0x1006e'
},
'mh' => '0x100c49'
},
]
},
'throttle' => '86',
'total-models' => '86',
'xmlns' => 'http://www.ca.com/spectrum/restful/schema/response'
};
I need to pull out 'mh' and 'content' and assign to a hash with content as key and mh as value. I have not been able to get data structure quite right.. I appreciate any help. Thanks! Robert