Skip Menu |

This queue is for tickets about the XML-RSS CPAN distribution.

Report information
The Basics
Id: 30967
Status: resolved
Worked: 10 min
Priority: 0/
Queue: XML-RSS

People
Owner: SHLOMIF [...] cpan.org
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.31
Fixed in: (no value)



Subject: Attributes for prefixed elements
There is no (documented?) way to add an attribute to a prefixed element in an item. <media:category label="Tags"> vomit nyc subway drunk train hillarious</media:category> See http://youtube.com/rss/global/recently_added.rss as a sample feed.
I'm using: $rss->add_module(prefix => 'media', uri => 'http://search.yahoo.com/mrss/'); But: $rss->add_item( media => { category => 'only a scalar is working here' } );
Bug #12055 is related.
Now there is in trunk: http://svn.perl.org/modules/XML-RSS/trunk See the documentation and t/test-generated-items.t: 'Multiple values for the same key in a module, usign an array ref'