Hi,
I have a problem parsing an rss feed using simplexml_load_ file - this is strange as i have used the same code to parse literally 1000s of different rss feeds in the past, and even stranger in that if i put the feed source on our server as a .xml file then my code parses it successfully.
The relevant code snippet:
The errors i get are:
Any ideas or suggestions will be much appreciated thanks.
d.
I have a problem parsing an rss feed using simplexml_load_ file - this is strange as i have used the same code to parse literally 1000s of different rss feeds in the past, and even stranger in that if i put the feed source on our server as a .xml file then my code parses it successfully.
The relevant code snippet:
Code:
$xml = simplexml_load_file("http://www.quidco.com/blog/?feed=rss2",'SimpleXMLElement', LIBXML_NOCDATA);
Warning: simplexml_load_ file() [function.simple xml-load-file]: http://www.quidco.com/blog/?feed=rss2:1: parser error : Start tag expected, '<' not found in [my php script]
Warning: simplexml_load_ file() [function.simple xml-load-file]: 2977 in [my php script]
Warning: simplexml_load_ file() [function.simple xml-load-file]: ^ in [my php script]
Warning: simplexml_load_ file() [function.simple xml-load-file]: 2977 in [my php script]
Warning: simplexml_load_ file() [function.simple xml-load-file]: ^ in [my php script]
d.
Comment