<?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: Why CDATA Matters in XML</title>
	<atom:link href="http://blog.bogojoker.com/2008/06/why-cdata-matters-in-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bogojoker.com/2008/06/why-cdata-matters-in-xml/</link>
	<description>'My humble abode'.sub(/ab/,'c')</description>
	<pubDate>Fri, 21 Nov 2008 18:27:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: joe</title>
		<link>http://blog.bogojoker.com/2008/06/why-cdata-matters-in-xml/#comment-173</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Sun, 07 Sep 2008 21:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bogojoker.com/?p=53#comment-173</guid>
		<description>@Ricardo: Okay!  Thats good to know.  That shows how little testing and research I did.  Thanks for the heads up and the link!</description>
		<content:encoded><![CDATA[<p>@Ricardo: Okay!  Thats good to know.  That shows how little testing and research I did.  Thanks for the heads up and the link!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Martins</title>
		<link>http://blog.bogojoker.com/2008/06/why-cdata-matters-in-xml/#comment-172</link>
		<dc:creator>Ricardo Martins</dc:creator>
		<pubDate>Sun, 07 Sep 2008 21:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bogojoker.com/?p=53#comment-172</guid>
		<description>"Its valid, its sent as xhtml, now everything is left up to the browser and it doesn’t seem to work. If you know why, drop a comment. Again my suspicion is that the browsers don’t properly handle XHTML and CDATA completely."

Actually, it's because document.write isn't allowed by XML parsers. Since you're sending the xhtml with the proper mimetype, browsers will use the XML parser and ignore the document.write. Ian Hixie explains it in detail[1].

[1] http://ln.hixie.ch/?count=1&#38;start=1091626816</description>
		<content:encoded><![CDATA[<p>&#8220;Its valid, its sent as xhtml, now everything is left up to the browser and it doesn’t seem to work. If you know why, drop a comment. Again my suspicion is that the browsers don’t properly handle XHTML and CDATA completely.&#8221;</p>
<p>Actually, it&#8217;s because document.write isn&#8217;t allowed by XML parsers. Since you&#8217;re sending the xhtml with the proper mimetype, browsers will use the XML parser and ignore the document.write. Ian Hixie explains it in detail[1].</p>
<p>[1] <a href="http://ln.hixie.ch/?count=1&amp;start=1091626816" rel="nofollow">http://ln.hixie.ch/?count=1&amp;start=1091626816</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
