<?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>MaisonBisson.com &#187; cdata</title>
	<atom:link href="http://maisonbisson.com/blog/post/tag/cdata/feed/" rel="self" type="application/rss+xml" />
	<link>http://maisonbisson.com</link>
	<description>A bunch of stuff I would have emailed you about.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP5&#8217;s SimpleXML Now Passes CDATA Content</title>
		<link>http://maisonbisson.com/blog/post/11257/php5s-simplexml-now-passes-cdata-content/</link>
		<comments>http://maisonbisson.com/blog/post/11257/php5s-simplexml-now-passes-cdata-content/#comments</comments>
		<pubDate>Wed, 12 Apr 2006 16:03:09 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cdata]]></category>
		<category><![CDATA[cdata in php]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[parsing rss]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/post/11257/</guid>
		<description><![CDATA[
I didn&#8217;t hear big announcement of it, but deep in the docs (? PHP 5.1.0) you&#8217;ll find a note about additional Libxml parameters. In there you&#8217;ll learn about “LIBXML_NOCDATA,” and it works like this:
simplexml_load_string($xmlraw,&#160;'SimpleXMLElement',&#160;LIBXML_NOCDATA);
Without that option (and with all previous versions of PHP/SimpleXML), SimpleXML just ignores any < ![CDATA[...]]&#62; &#8216;escaped&#8217; content, such as you&#8217;ll find [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-11257"><!-- &nbsp; --></abbr>
<p>I didn&#8217;t hear big announcement of it, but <a href="http://us3.php.net/manual/en/function.simplexml-load-string.php">deep in the docs</a> (? PHP 5.1.0) you&#8217;ll find a note about <a href="http://us3.php.net/manual/en/ref.libxml.php#libxml.constants" title="additional Libxml parameters">additional Libxml parameters</a>. In there you&#8217;ll learn about “LIBXML_NOCDATA,” and it works like this:</p>
<blockquote><p><code style="display: block; text-align: left; overflow: scroll;">simplexml_load_string($xmlraw,&nbsp;'SimpleXMLElement',&nbsp;LIBXML_NOCDATA);</code></p></blockquote>
<p>Without that option (and with all previous versions of PHP/SimpleXML), SimpleXML just ignores any < ![CDATA[...]]&gt; &#8216;escaped&#8217; content, such as you&#8217;ll find in most every blog feed.</p>
<p><tags>cdata, cdata in php, fixed, parsing rss, php, php5, rss, simplexml, xml</tags></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/11257/php5s-simplexml-now-passes-cdata-content/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using XML In PHP5</title>
		<link>http://maisonbisson.com/blog/post/10901/php5-xml/</link>
		<comments>http://maisonbisson.com/blog/post/10901/php5-xml/#comments</comments>
		<pubDate>Tue, 22 Nov 2005 17:42:09 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cdata]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xml server]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=10901</guid>
		<description><![CDATA[
Everybody likes documentation. The Zend folks posted this overview and SimpleXML introduction The O&#8217;Reilly folks at ONLamp offered this guide to using SimpleXML. Of course, there&#8217;s always the SimpleXML docs at PHP.net.
Two problems: I haven&#8217;t encountered CDATA in my XML yet, but I do hope to develop a better solution than offered here when I [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-10901"><!-- &nbsp; --></abbr>
<p>Everybody likes documentation. The <a href="http://www.zend.com/">Zend folks</a> posted this <a href="http://www.zend.com/php5/articles/php5-xmlphp.php" title="Zend Technologies - PHP 5 In Depth - XML in PHP 5 - What's New?">overview</a> and <a href="http://www.zend.com/php5/articles/php5-simplexml.php" title="Zend Technologies - PHP 5 In Depth - SimpleXML">SimpleXML introduction</a> The O&#8217;Reilly folks at ONLamp offered this <a href="http://www.onlamp.com/pub/a/php/2004/01/15/simplexml.html" title="ONLamp.com: Using PHP 5's SimpleXML">guide to using SimpleXML</a>. Of course, there&#8217;s always the <a href="http://us2.php.net/simplexml" title="PHP: SimpleXML functions - Manual">SimpleXML docs</a> at PHP.net.</p>
<p>Two problems: I haven&#8217;t encountered <a href="http://changelog.ca/log/2005/06/14/php-simplexml-cdata-problem--and-my-solution" title="PHP SimpleXML CDATA Problem... and My Solution | By Charles Iliya Krempeaux, B.Sc. | ChangeLog.ca">CDATA in my XML</a> yet, but I do hope to develop a better solution than offered <a href="http://changelog.ca/log/2005/06/14/php-simplexml-cdata-problem--and-my-solution">here</a> when I do. The other is that SimpleXML chokes on illegal characters, a unfortunately common occurrence in documents coming from <a href="http://libdev.plymouth.edu/post/5">III&#8217;s XML Server</a>.<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">tags: <a href="http://www.technorati.com/tag/cdata" rel="tag">cdata</a>, <a href="http://www.technorati.com/tag/docs" rel="tag">docs</a>, <a href="http://www.technorati.com/tag/documentation" rel="tag">documentation</a>, <a href="http://www.technorati.com/tag/php" rel="tag">php</a>, <a href="http://www.technorati.com/tag/php5" rel="tag">php5</a>, <a href="http://www.technorati.com/tag/simplexml" rel="tag">simplexml</a>, <a href="http://www.technorati.com/tag/xml server" rel="tag">xml server</a>, <a href="http://www.technorati.com/tag/xml" rel="tag">xml</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/10901/php5-xml/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>