--TEST-- SimpleXML [profile]: Accessing by namespace prefix --SKIPIF-- --FILE-- EOF; $sxe = simplexml_load_string($xml); var_dump($sxe->children('soap', 1)); $sxe = simplexml_load_string($xml, NULL, 0, 'soap', 1); var_dump($sxe->Body); var_dump($sxe->Body->children('')); var_dump($sxe->Body->children('')->businessList); ?> ===DONE=== --EXPECTF-- object(SimpleXMLElement)#%d (1) { [u"Body"]=> object(SimpleXMLElement)#%d (0) { } } object(SimpleXMLElement)#%d (0) { } object(SimpleXMLElement)#%d (1) { [u"businessList"]=> object(SimpleXMLElement)#%d (2) { [u"@attributes"]=> array(1) { [u"foo"]=> unicode(3) "bar" } [u"businessInfo"]=> object(SimpleXMLElement)#%d (1) { [u"@attributes"]=> array(1) { [u"businessKey"]=> unicode(3) "bla" } } } } object(SimpleXMLElement)#%d (2) { [u"@attributes"]=> array(1) { [u"foo"]=> unicode(3) "bar" } [u"businessInfo"]=> object(SimpleXMLElement)#%d (1) { [u"@attributes"]=> array(1) { [u"businessKey"]=> unicode(3) "bla" } } } ===DONE===