[eluser]Boardy[/eluser]
Hi,
I'm trying to create an RSS or Atom feed for my custom built blog with CI, however whenever I try to output the xml version in the view, it always results in errors.
I'm using the following code.
Code:
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
I am getting this back in Opera, and the page will not even load in Firefox.
Code:
<?xml version="1.0" encoding="UTF-8"; ?>
Everything seems to work if I remove the echo XML line, however I believe this will make the page invalid. I've read Derek Allard's blog post on creating RSS feeds and the exact same issue comes up.
I'm using the latest CI from the main site, everything else is working flawlessly and has made such a vast improvement over my previous attempts at anything like this with Zend Framework, however I just cannot seem to get this XML issue sorted.
Can anyone help me please?
Cheers
Adam