Date: 04/29/07 (PHP Development) Keywords: xml, web I am connecting to Amazon's S3 web service. I've created 2 buckets, and am now writing a function to get back the list of buckets from S3, and am having problems parsing the XML with simple XML. object(SimpleXMLElement)#17 (1) { [0]=> string(13) "JamesTest1234" } How do I get access to [0] I've tried all kinds of things. If it was ['0'] I'd know how to get it, but in this case when I try $bucketObj->Name->0 it fails I've also tried $bucketObj->Name[0]. I'm really confused. I've used SimpleXML before and hadn't had any kinds of issues like this, so any suggestions would be greatly appreaciated. This is the XML I receive with a little modified info:
|