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
If you just want to print the raw XML you don't need Simple XML. I added some error handling and a simple example of how you might want to use SimpleXML.
channel->item as $item) { print $item->title; }