Welcome Guest, Not a member yet? Register   Sign In
RSS error in CI
#1

[eluser]nirbhab[/eluser]
hi guys,

i am working for rss creation, i have already done this module without CI, but i am doing similar activity in CI i am getting following error:

Error: xml declaration not at start of external entity
Source File: http://nirbhab/lostandfound/index.php/test/rss
Line: 1, Column: 2
Source Code:
<?xml version='1.0'?>-^


Explanation of my work:

VIEW:
<?php
echo "<?xml version='1.0'?>
<rss version='2.0'>
<channel>
&lt;title&gt;Liftoff News&lt;/title&gt;
&lt;link&gt;http://liftoff.msfc.nasa.gov/&lt;/link&gt;
<description>Liftoff to Space Exploration.</description>
<language>en-us</language>
<pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
<lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Weblog Editor 2.0</generator>
<managingEditor>[email protected]</managingEditor>
<webMaster>[email protected]</webMaster>

<item>
&lt;title&gt;Star City&lt;/title&gt;
&lt;link&gt;http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp&lt;/link&gt;
<description>How do Americans get ready to work with Russians aboard the
International Space Station? They take a crash course in culture, language
and protocol at Russia's Star City.</description>
<pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
<guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
</item>
</channel>
</rss>
";
?&gt;

can anyone help me out?
#2

[eluser]Michael Wales[/eluser]
See Derek Allard's tutorial.




Theme © iAndrew 2016 - Forum software by © MyBB