Skip Menu |

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

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

People
Owner: SHLOMIF [...] cpan.org
Requestors: gms8994 [...] dp.cx
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.33
Fixed in: (no value)



Subject: Repeated tags cause join of contents
The code below use XML::RSS; use LWP::Simple; $data = get('http://feeds.delicious.com/v2/rss/url/79ccfa739c308e65f39c98f6acee6196'); my $rss = new XML::RSS (version => '2.0'); $rss->parse($data); use Data::Dumper; die Dumper($rss); will contain a section: 'category' => 'pythonxmlparsingelementtreelibraryparser', even though the original XML contains: <category domain="http://delicious.com/caiomoritz/">python</category> <category domain="http://delicious.com/caiomoritz/">xml</category> <category domain="http://delicious.com/caiomoritz/">parsing</category> <category domain="http://delicious.com/caiomoritz/">elementtree</category> <category domain="http://delicious.com/caiomoritz/">library</category> <category domain="http://delicious.com/caiomoritz/">parser</category> Expected output would be an array of categories, with one value from the xml for each.
Fixed in trunk - have to check the to-text rendering of an array reference of categories.