V
vamsee.2005
<response status="sucess">
<value type="hash">
<item key="asdfas" value="hello"/>
<item key="adfa" value="hi"/>
</value>
</response>
XMLin is producing following below data structure from the above xml.
$VAR1 = {
'value' => {
'item' => {
'adfa' => {
'value' => 'hi'
},
'asdfas' => {
'value' => 'hello'
}
},
'type' => 'hash'
},
'status' => 'sucess'
};
What to do inorder to XMLin to force create the below datastructure.
$VAR1 = {
'value' => {
'item' => [
{ 'key' =>'adfa'
'value' => 'hi'
},
{ 'key'=> 'asdfas'
'value' => 'hello'
}
],
'type' => 'hash'
},
'status' => 'sucess'
};
Thanks, waiting for reply.
<value type="hash">
<item key="asdfas" value="hello"/>
<item key="adfa" value="hi"/>
</value>
</response>
XMLin is producing following below data structure from the above xml.
$VAR1 = {
'value' => {
'item' => {
'adfa' => {
'value' => 'hi'
},
'asdfas' => {
'value' => 'hello'
}
},
'type' => 'hash'
},
'status' => 'sucess'
};
What to do inorder to XMLin to force create the below datastructure.
$VAR1 = {
'value' => {
'item' => [
{ 'key' =>'adfa'
'value' => 'hi'
},
{ 'key'=> 'asdfas'
'value' => 'hello'
}
],
'type' => 'hash'
},
'status' => 'sucess'
};
Thanks, waiting for reply.