tags:

views:

534

answers:

2
+3  Q: 

Images in RSS feed

Whenever I see images in an RSS feed, they are embedded in CDATA, rather than surrounded by tags.

In my feed, I would like the images to show up without doing that.

Whether in the browser, or a feed reader (Bloglines) or through FeedBurner, the following structure does not show images, although it is valid RSS. Does anyone have experience with this?

<item>
<category>Viewbook</category>
<title>Widget</title>
<description>Learn more about our widgets.</description>
<link>http://www.widget.com/Default.aspx&lt;/link&gt;
<image>
<url>http://www.widget.com/images/thumb.gif&lt;/url&gt;
<title>Widget</title>
<link>http://www.widget.com/Default.aspx&lt;/link&gt;
<description>Learn more about our widgets.</description>
</image>
</item>
A: 

It works with a seperate tag, as you said. The problem is the specification of version 2.0.

I know, there are feed reader that does supress images for bandwidth reasons.

Source: RSS specification 2.0 via Wikipedia

furtelwart
That only gives you one image for the feed, like a logo -- it's a child of <channel> not <item>.
Colonel Sponsz
So it's not supposed that there are images in items via the image tag.
furtelwart
+3  A: 

On Colonol Sponsz' hint, I researched:

There's no image tag for items, only for the channel. So you have to do it via the CDATA tag.

furtelwart