XML, RSS, PHP and SimpleXMLElement
Wednesday, October 07th, 2009 | Author: Watty

A lot of people have multipage PHP scripts to read <content:encoded> CDATA part of RSS believing that SimpleXML in PHP can’t do it.

Well it can!

content is referring to  the Namespace used.

viz at the start of the Feed is the clue:

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/">

This Guy explains it well Here is another good post
The Techtir.ie portal has the “posts” content filled in from Forum Posts via RSS by including content:encoded and CDATA parts in the RSS feeds, using only a fragment of PHP in the “post” via SimpleXMLElement.

Category: About Watty Stuff  | Tags: , ,  | Comments off