I'm having a problem with SIMPLE XML. I seem to have an array with dumping the whole object. However, when I try to access the array, I get a single element of the array back.
Here is the full dump:
SimpleXMLElement Object
(
[@attributes] => Array
(
[type] => array
)
[person] => Array
(
[0] => SimpleXMLElement Object
(
..........................
),
[1] => SimpleXMLElement Object
(
..........................
)
)
)
when I try to access the person array through $xml->person, instead of getting the array, I get the first element back. Any ideas?