<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: RSS feeds in PHP: 3 simple steps to PHP RSS generation</title>
	<atom:link href="http://www.developertutorials.com/blog/php/rss-feeds-in-php-3-simple-steps-to-php-rss-generation-121/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog/php/rss-feeds-in-php-3-simple-steps-to-php-rss-generation-121/</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Mon, 07 Jul 2008 01:15:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: wcoenen</title>
		<link>http://www.developertutorials.com/blog/php/rss-feeds-in-php-3-simple-steps-to-php-rss-generation-121/#comment-406</link>
		<dc:creator>wcoenen</dc:creator>
		<pubDate>Sat, 19 Apr 2008 14:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/rss-feeds-in-php-3-simple-steps-to-php-rss-generation-121/#comment-406</guid>
		<description>Generating plain text is a sure way to end up with something that looks like XML but is not well-formed. For example, what if the title or descriptions contain characters like &#38; that need to be escaped?

I learned this the hard way: if it's going to be read by an XML parser, then you should generate it with something like DOMDocument or XML writer. Especially if you don't control the clients that are going to read your "XML".

An even better choice would be to not reinvent the wheel: http://freshmeat.net/projects/rsswriterclass/</description>
		<content:encoded><![CDATA[<p>Generating plain text is a sure way to end up with something that looks like XML but is not well-formed. For example, what if the title or descriptions contain characters like &amp; that need to be escaped?</p>
<p>I learned this the hard way: if it&#8217;s going to be read by an XML parser, then you should generate it with something like DOMDocument or XML writer. Especially if you don&#8217;t control the clients that are going to read your &#8220;XML&#8221;.</p>
<p>An even better choice would be to not reinvent the wheel: <a href="http://freshmeat.net/projects/rsswriterclass/" rel="nofollow">http://freshmeat.net/projects/rsswriterclass/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
