views:

29

answers:

1

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?

A: 

what is your code to access the array?

Chrisvdberge
This is not an answer. This should be a comment to the question. Just a friendly reminder. ;)
sgmeyer
thx.. new to this site so appreciate the reminder ;)
Chrisvdberge