title: Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'
body: <p>I am using PHP 5 and trying to get the the currency exchange rates from a Web page using cURL.</p>
  
  <p>To retrieve the contents I call:</p>
  
  <pre><code>$html = curl_exec($ch);
  </code></pre>
  
  <p>This displays the page correctly. However, when I try to format it into XML using: </p>
  
  <p><code>$xml = new SimpleXMLElement($html);</code></p>
  
  <p>Numerous warnings are displayed ending with "Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML'"</p>
  
  <p>I have used <code>stripslashes($html)</code> and turned off <code>magic_qoutes</code>...</p>
  
  <p>Kindly help me finding a solution, I have been stuck on this problem for the past 2 days. </p>
  
  <p>Also note, the page has the JavaScript embedded into it.. is this the JavaScript  that is not allowing the XML to be created?</p>
  
  <p>Thank you</p>