<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NiceCabbage Blog &#187; php</title>
	<atom:link href="http://www.nicecabbage.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicecabbage.com</link>
	<description>Life, Design, Web Application</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:03:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Generate a valid feed(RSS/Atom) on Wordpress</title>
		<link>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/</link>
		<comments>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 04:23:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[TechTips]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nicecabbage.com/?p=195</guid>
		<description><![CDATA[Problem:
In some cases, your wordpress do not generate a valid rss; Weirdly, your rss includes an empty line at the top of the feed. In such a case, when viewed on Firefox3.5 or validated with Feed Validator, your rss would fail.
Solution:
What we have to do is just to remove an empty line, but to find [...]]]></description>
			<content:encoded><![CDATA[<h2>Problem:</h2>
<p>In some cases, your wordpress do not generate a valid rss; Weirdly, your rss includes an empty line at the top of the feed. In such a case, when viewed on Firefox3.5 or validated with <a href="http://beta.feedvalidator.org/">Feed Validator</a>, your rss would fail.</p>
<h2>Solution:</h2>
<p>What we have to do is just to remove an empty line, but to find the bug source is not easy. The output feed is generated through mulitple processes inside Wordpress, themes, and plugins.</p>
<p>The point is that</p>
<ol>
<li>Check your wp-config.php that there are no trailing empty lines before &lt;?php and after ?&gt;</li>
<li>Check functions.php in your theme, too.</li>
<li>Check other theme php files.</li>
<li>If you still cannot solve the problem, stop each plugin and re-generate RSS. Sometimes an empty line is included in plugin php files.</li>
</ol>
<p>Hope your luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicecabbage.com/2009/12/generate-a-valid-feedrssatom-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
