Im using this library to post an rss feed on my website.
The question i have is in the rss feed i have the image tag. How do i add this one image below to my feed?
Thanks
<pubDate>Thu, 10 Nov 2011 17:10:19 GMT</pubDate>
<lastBuildDate>Thu, 10 Nov 2011 17:10:19 GMT</lastBuildDate>
<ttl>15</ttl>
<image>
<title>press conference</title>
<url>
http://www.website.com/images/image.jpg
</url>
Your library (or you?) are violating the RSS2 specs. The specs say:
Those three required sub-elements are:
<url>: specifies the URL to a GIF, JPG or PNG image.<title>: is the equivalent to thealt-attribute in HTMLs<img>-tag<link>: is the URL to your site which should (when the RSS-file isrendered) be the target for the link on your image.
However, you might also want to specify a width, height and description for the image (descriptions can be found in the specs, linked above).
So a valid RSS-file (just the
<image>-part) should look something like this: