Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

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

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

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



X History Display mode: Brief headersFull headers
#   Thu Aug 07 12:12:05 2008 gms8994 - Ticket created  
Subject: Repeated tags cause join of contents
[text/plain 869b]
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.
#   Fri Nov 28 07:22:00 2008 SHLOMIF - Correspondence added 30 min  
[text/plain 89b]
Fixed in trunk - have to check the to-text rendering of an array
reference of categories.
#   Fri Nov 28 07:22:04 2008 RT_System - Status changed from 'new' to 'open'  
#   Fri Nov 28 07:22:05 2008 SHLOMIF - Status changed from 'open' to 'resolved'  
#   Fri Nov 28 07:22:18 2008 SHLOMIF - Given to SHLOMIF