title: simplexml_load_string() will not read soap response with "soap:" in the tags
body: <p>I know this may be a newbie question, but please humor me. When reading an xml string with "soap:" in the tags, simplexml_load_string() will not read in the xml.</p>
  
  <p>given this script:</p>
  
  <pre><code>#!/usr/bin/php
  &lt;?php
  
  $s='
      &lt;soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
          &lt;soap:Header&gt;
          &lt;context xmlns="urn:zimbra"/&gt;
          &lt;/soap:Header&gt;
          &lt;soap:Body&gt;
              &lt;AuthResponse xmlns="urn:zimbraAdmin"&gt;
                  &lt;authToken&gt;somevalue&lt;/authToken&gt;
                  &lt;lifetime&gt;123124123&lt;/lifetime&gt;
                  &lt;a n="zimbraIsDomainAdminAccount"&gt;false&lt;/a&gt;
              &lt;/AuthResponse&gt;
          &lt;/soap:Body&gt;
      &lt;/soap:Envelope&gt;';
  
  
  print_r(simplexml_load_string($s));
  echo "\n\n";
  print_r(simplexml_load_string(str_ireplace("soap:", "", $s)));
  ?&gt;
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>jesse@jesse-debian:~/code/zmsoap$ ./xmltest.php 
  SimpleXMLElement Object
  (
  )
  
  SimpleXMLElement Object
  (
      [Header] =&gt; SimpleXMLElement Object
          (
              [context] =&gt; SimpleXMLElement Object
                  (
                  )
  
          )
  
      [Body] =&gt; SimpleXMLElement Object
          (
              [AuthResponse] =&gt; SimpleXMLElement Object
                  (
                      [authToken] =&gt; somevalue
                      [lifetime] =&gt; 123124123
                      [a] =&gt; false
                  )
  
          )
  
  )
  jesse@jesse-debian:~/code/zmsoap$
  </code></pre>
  
  <p>I'm just curious why this is happening, and if there is a more proper way to remedy the problem as opposed to doing a string replace.</p>