title: problem parsing xml with simplexml
body: <p>I'm trying to parse some xml using simplexml and php...it's being returned to me from a service like so:</p>
  
  <pre><code>&lt;DMResponse&gt;&lt;Code&gt;2&lt;/Code&gt;&lt;Description&gt;Your request was successfully received You will        receive notification once the process has been completed.&lt;/Description&gt;&lt;ResultData&gt;&lt;Explanation&gt;     The job name is 578bbn004 &lt;/Explanation&gt;&lt;/ResultData&gt;&lt;/DMResponse&gt;
  </code></pre>
  
  <p>I pasted this from the .net panel in firebug.</p>
  
  <p>This is how I'm trying to parse is using php:</p>
  
  <pre><code>$result = curl_exec($ch);
  print 'xml ' . $result . ' xml';
  $xml = new SimpleXMLElement($result);
  $code = $xml-&gt;code;
  echo $code;
  </code></pre>
  
  <p>$result is deinfitely populated...I get it back in the print statement above....it contains the xml structure I've posted.</p>
  
  <p>The error I'm getting is 'String could not be parsed as XML'. I don't understand why it's doing this. Any ideas?</p>