J
John
Hi
Odd problem with XML.
If you have the following one line XML and then use:umper to view it you
get the correct hash references.
<session sid="abcde12345" city="boston"/>
$VAR1 = [ { 'sid' => 'abcde12345', 'city' => 'boston' } ];
However, if you use "id" instead of "sid" as in the following
<session id="abcde12345" city="boston"/>
The reference id="abcde12345" does not appear and you get
$VAR1 = { 'abcde12345' => { 'city' => 'boston' } };
What is so special about 'id' that causes this behaviour?
Regards
John
Odd problem with XML.
If you have the following one line XML and then use:umper to view it you
get the correct hash references.
<session sid="abcde12345" city="boston"/>
$VAR1 = [ { 'sid' => 'abcde12345', 'city' => 'boston' } ];
However, if you use "id" instead of "sid" as in the following
<session id="abcde12345" city="boston"/>
The reference id="abcde12345" does not appear and you get
$VAR1 = { 'abcde12345' => { 'city' => 'boston' } };
What is so special about 'id' that causes this behaviour?
Regards
John