title: SOAP response to XML with SimpleXML
body: <p>I am trying  to convert a SOAP response to XML.</p>
  
  <p>SOAP has an envelop and a body</p>
  
  <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;soap:Body&gt;
  </code></pre>
  
  <p>When I try to convert </p>
  
  <pre><code>$responseXML = simplexml_load_string($string);
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>object(SimpleXMLElement)#20 (0) { } 
  </code></pre>
  
  <p>If I edit the <code>$string</code> as <code>soap:Envelope</code> and <code>soap:Body</code> I can get the XML.</p>
  
  <p>What's wrong with <code>:</code>? Can not get XML.</p>
  
  <p>I hope it's clear. Anyone?</p>