<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Sat, 13 Mar 2010 12:34:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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-page-1/#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 &amp; that need to be escaped?

I learned this the hard way: if it&#039;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&#039;t control the clients that are going to read your &quot;XML&quot;.

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>
