CodeIgniter Forums

Full Version: Rss feed creation probs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi friends,

I m using ci for my application. i tried to create an rss my controller
but it showing the following error..
*XML Parsing Error: XML or text declaration not at start of entity
*<?xml version="1.0" encoding="ISO-8859-1"?>-^
can one guide me how to create rss feeds from controller itself?

El Forum

you have to echo that xml start tag out as it's conflicting with PHP:

echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";

El Forum

Thanks dude..its working fine....