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.