title: How to echo XML file in PHP
body: <p>How to print an XML file to the screen in PHP?</p>
  <p>This is not working:</p>
  <pre><code>$curl = curl_init();        
  curl_setopt ($curl, CURLOPT_URL, 'http://rss.news.yahoo.com/rss/topstories');   
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);   
  $result = curl_exec ($curl);   
  curl_close ($curl);    
  $xml = simplexml_load_string($result);
  echo $xml;
  </code></pre>
  <p>Is there a simple solution? Maybe without SimpleXML?</p>