title: PHP XML response start tag expected, but i see it in var_dump
body: <p>I have the following being returned</p>
  
  <p><strong>var_dump:</strong></p>
  
  <pre><code>string(799) "&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common" xmlns:att="http://www.webex.com/schemas/2002/06/service/attendee"&gt;&lt;serv:header&gt;&lt;serv:response&gt;&lt;serv:result&gt;SUCCESS&lt;/serv:result&gt;&lt;serv:gsbStatus&gt;BACKUP&lt;/serv:gsbStatus&gt;&lt;/serv:response&gt;&lt;/serv:header&gt;&lt;serv:body&gt;&lt;serv:bodyContent xsi:type="att:registerMeetingAttendeeResponse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;att:register&gt;&lt;att:attendeeID&gt;29281003&lt;/att:attendeeID&gt;&lt;/att:register&gt;&lt;/serv:bodyContent&gt;&lt;/serv:body&gt;&lt;/serv:message&gt;"
  </code></pre>
  
  <p>i'm trying to use SimpleXML, but i'm first validating output with this function (sorry, can't remember where i found it on stackoverflow):</p>
  
  <pre><code>function isXML($xml){
             libxml_use_internal_errors(true);
  
             $doc = new DOMDocument('1.0', 'utf-8');
             $doc-&gt;loadXML($xml);
  
             $errors = libxml_get_errors();
  
             if(empty($errors)){
                 return true;
             }
  
             $error = $errors[0];
             if($error-&gt;level &lt; 3){
                 return true;
             }
  
             $explodedxml = explode("r", $xml);
             $badxml = $explodedxml[($error-&gt;line)-1];
  
             $message = $error-&gt;message . ' at line ' . $error-&gt;line . '. Bad XML: ' . htmlentities($badxml);
             return $message;
          }
  </code></pre>
  
  <p><strong>result of isXML()</strong></p>
  
  <pre><code>Start tag expected, '&lt;' not found at line 1. Bad XML: &amp;lt;?xml ve
  </code></pre>
  
  <p>I see the '&lt;', unless the var_dump is inaccurate. I've broken this thing down as much as I could. Any help would be greatly appreciated. </p>