[thelist] HTML in RSS -- Separating Items

Steve Axthelm steveax at pobox.com
Tue Apr 7 12:51:09 CDT 2009


On 2009-04-07 Tony Spiro wrote:

> I'm completely new to RSS and was hoping I could get some help syndicating
> some html content.
> 
> The issue I'm having is Google Reader recognizes the HTML between the
> description tags just fine, however it does not separate the different items
> in the channel.  Here's what I got for the XML:
> 
> <?xml version="1.0">

This should be:

<?xml version="1.0" ?>

> <rss version="2.0">
>   <channel>
>     <title>My Denton Music : News</title>
>     <link>http://www.mydentonmusic.com/news.php</link>
>     <description>Connect With Your Denton Music Scene</description>
>     <language>en-us</language>
>     <pubDate>Mon, 06 Apr 2009 04:00:00 GMT</pubDate>
>     <lastBuildDate>Mon, 06 Apr 2009 04:00:00 GMT</lastBuildDate>
>     <item>
>       <title>Electric Six @ The Boiler Room </title>
>       <link>http://www.mydentonmusic.com/news.php</link>
>       <description>
>       <img align='right' width='420px' style='padding-left: 20px' src='

Angle brackets need to be encoded:

(&lt; &gt;)

or enclosed in CDATA blocks:

<description>//<![CDATA[
[...]
//]]></description>

Validators are your friend:

<http://validator.w3.org/feed/>

HTH,


-Steve

-- 
Steve Axthelm
steveax at pobox.com




More information about the thelist mailing list