Posted on 2009-03-10 18:59:14-07 by porton
Images in items

XML::FeedPP::RSS::Item supports ->image() method which works counter-standard (<image> tag is not supported inside items in RSS 2.0).

While this is OK to parse non standard conformant feeds, issuing ->image() with arguments creates a broken RSS 2.0 feed.

The standard (in RSS 2.0) mean to associate an image with an item is to use <enclosure/> tag.

I am going to rewrite (and send the patch) XML::FeedPP to be able to parse feeds with images attached to items.

The issue is whether I should change XML::FeedPP::RSS::Item->image() invoked with arguments to generate <enclosure/> tag or leave XML::FeedPP::RSS::Item->image() as is, just deprecating it in favor of some new method which will be standard conformant?

I await the reply of Kawasaki.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.