How to print an xml file to the screen in php?
This is not working:
$curl = curl_init(); curl_setopt ($curl, CURLOPT_URL, \'http://rss.news.y
You can use the asXML method
echo $xml->asXML();
You can also give it a filename
$xml->asXML('filename.xml');