<?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: 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>&#039;My humble abode&#039;.sub(/ab/,&#039;c&#039;)</description>
	<lastBuildDate>Wed, 28 Sep 2011 09:09:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joseph Pecoraro</title>
		<link>http://blog.bogojoker.com/2008/06/why-cdata-matters-in-xml/comment-page-1/#comment-173</link>
		<dc:creator>Joseph Pecoraro</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-page-1/#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>&quot;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.&quot;

Actually, it&#039;s because document.write isn&#039;t allowed by XML parsers. Since you&#039;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&amp;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&#038;start=1091626816" rel="nofollow">http://ln.hixie.ch/?count=1&#038;start=1091626816</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

