- var_dump: documentation ( source)
<?php
$xml = new SimpleXMLElement('<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.opentravel.org/OTA/2003/05">
<soapenv:Header/>
<soapenv:Body>
</soapenv:Body>
</soapenv:Envelope>');
var_dump($xml);
$soapenvxml = $xml->children("soapenv", true);
var_dump($soapenvxml);