CodeIgniter Forums
Rss feed creation probs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Rss feed creation probs (/thread-12411.html)



Rss feed creation probs - El Forum - 10-18-2008

[eluser]Senthilguru[/eluser]
Hi friends,

I m using ci for my application. i tried to create an rss feed...in 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?


Rss feed creation probs - El Forum - 10-18-2008

[eluser]manilodisan[/eluser]
you have to echo that xml start tag out as it's conflicting with PHP:

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



Rss feed creation probs - El Forum - 10-19-2008

[eluser]Senthilguru[/eluser]
Thanks dude..its working fine....