<?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: How-To: Fix SimpleXML CDATA problem in php</title>
	<atom:link href="http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html</link>
	<description>Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX</description>
	<lastBuildDate>Tue, 22 Nov 2011 00:50:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Daniel</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1925</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Wed, 16 Nov 2011 09:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1925</guid>
		<description>Thanks! Just saved me from going crazy :)</description>
		<content:encoded><![CDATA[<p>Thanks! Just saved me from going crazy <img src='http://blog.evandavey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave freeman</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1915</link>
		<dc:creator>dave freeman</dc:creator>
		<pubDate>Wed, 19 Oct 2011 17:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1915</guid>
		<description>Thanks - A quick google search led me here, and saved me considerable pain.</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; A quick google search led me here, and saved me considerable pain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1864</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Fri, 22 Apr 2011 17:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1864</guid>
		<description>I realize this is a relatively old post (2008), but it just goes to show to power of google.

I was handling it like this:
$title = (string)$xml-&gt;title[0];

With this tweak, I can now do:
$title = (string)$xml-&gt;title;

Although the processing speed doesn&#039;t really change, the code is cleaner.  I was actually under the impression that my DTD was mistaken (as it didn&#039;t show as multiple titles in the xml).  All along it wasn&#039;t a possibility of multiple titles after all, it was just how the CDATA was being processed.

Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>I realize this is a relatively old post (2008), but it just goes to show to power of google.</p>
<p>I was handling it like this:<br />
$title = (string)$xml-&gt;title[0];</p>
<p>With this tweak, I can now do:<br />
$title = (string)$xml-&gt;title;</p>
<p>Although the processing speed doesn&#8217;t really change, the code is cleaner.  I was actually under the impression that my DTD was mistaken (as it didn&#8217;t show as multiple titles in the xml).  All along it wasn&#8217;t a possibility of multiple titles after all, it was just how the CDATA was being processed.</p>
<p>Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnystromdesign</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1859</link>
		<dc:creator>jnystromdesign</dc:creator>
		<pubDate>Mon, 04 Apr 2011 09:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1859</guid>
		<description>This might come late (years after post date), but; THANK YOU! Saved my day. :)</description>
		<content:encoded><![CDATA[<p>This might come late (years after post date), but; THANK YOU! Saved my day. <img src='http://blog.evandavey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav Jain</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1849</link>
		<dc:creator>Vaibhav Jain</dc:creator>
		<pubDate>Wed, 09 Mar 2011 09:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1849</guid>
		<description>Worked like a charm..

thanx a ton</description>
		<content:encoded><![CDATA[<p>Worked like a charm..</p>
<p>thanx a ton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobby &#38; Scott</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1845</link>
		<dc:creator>Bobby &#38; Scott</dc:creator>
		<pubDate>Sat, 26 Feb 2011 00:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1845</guid>
		<description>It helped us!  Thanks!</description>
		<content:encoded><![CDATA[<p>It helped us!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc Stupid</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1841</link>
		<dc:creator>Doc Stupid</dc:creator>
		<pubDate>Thu, 17 Feb 2011 05:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1841</guid>
		<description>Thanks man!  This saved me some serious time.</description>
		<content:encoded><![CDATA[<p>Thanks man!  This saved me some serious time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SimpleXMLElement Object mit Doppelpunkt im Namen (:) auslesen - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1838</link>
		<dc:creator>SimpleXMLElement Object mit Doppelpunkt im Namen (:) auslesen - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr</dc:creator>
		<pubDate>Thu, 03 Feb 2011 15:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1838</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SimpleXML Does Not Include CDATA By Default &#171; ooxeye</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1798</link>
		<dc:creator>SimpleXML Does Not Include CDATA By Default &#171; ooxeye</dc:creator>
		<pubDate>Thu, 11 Nov 2010 18:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1798</guid>
		<description>[...] You can see the full article and comments at blog.evandavey.com [...]</description>
		<content:encoded><![CDATA[<p>[...] You can see the full article and comments at blog.evandavey.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gff</title>
		<link>http://blog.evandavey.com/2008/04/how-to-fix-simplexml-cdata-problem-in-php.html/comment-page-1#comment-1790</link>
		<dc:creator>Gff</dc:creator>
		<pubDate>Wed, 03 Nov 2010 16:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.evandavey.com/?p=116#comment-1790</guid>
		<description>Great. Thx dude ! Savior of many hours ;p</description>
		<content:encoded><![CDATA[<p>Great. Thx dude ! Savior of many hours ;p</p>
]]></content:encoded>
	</item>
</channel>
</rss>

