Skip Menu |

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

Report information
The Basics
Id: 4453
Status: rejected
Priority: 0/
Queue: XML-RSS

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.02
Fixed in: (no value)



Subject: spurious 'item' field (full of newlines only) after parsefile
All the 'item' attributes contain a bunch of newlines, that i'm pretty sure shouldn't be showing up. Example use XML::RSS; use Data::Dumper; my $rss = XML::RSS->new; use LWP::Simple 'getstore'; mirror('http://slashdot.org/slashdot.rss','slashdot.rss'); $rss->parsefile('slashdot.rss'); die Dumper($rss->{items}); __END__ $VAR1 = [ { 'http://purl.org/dc/elements/1.1/' => { 'creator' => 'jamie', 'date' => '2003-11-21T13:33:00+00:00', 'subject' => 'debian' }, 'dc' => { 'creator' => 'jamie', 'date' => '2003-11-21T13:33:00+00:00', 'subject' => 'debian' }, 'description' => 'Sean was one of many to pass along the bad news from the debian-announce mailing list: "Some Debian Project machines have been compromised. This is a very ...', 'http://purl.org/rss/1.0/modules/slash/' => { 'section' => 'articles', 'department' => 'batten-down-hatches', 'comments' => '147', 'hitparade' => '147,136,105,58,15,7,5' }, 'title' => 'Debian Project Servers Compromised', 'item' => ' ',...
It is unsightly, but shouldn't effect usage at all. This is a by product of the: if ( self->within_element ) { $self->{item)->{$self->current_element} .= $data } idiom which is used throughout the code. [guest - Fri Nov 21 09:50:22 2003]: Show quoted text
> All the 'item' attributes contain a bunch of newlines, > that i'm pretty sure shouldn't be showing up. > Example > > use XML::RSS; > use Data::Dumper; > my $rss = XML::RSS->new; > use LWP::Simple 'getstore'; > mirror('http://slashdot.org/slashdot.rss','slashdot.rss'); > $rss->parsefile('slashdot.rss'); > die Dumper($rss->{items}); > __END__ > $VAR1 = [ > { > 'http://purl.org/dc/elements/1.1/' => { > 'creator' => > 'jamie', > 'date' => '2003- > 11-21T13:33:00+00:00', > 'subject' => > 'debian' > }, > 'dc' => { > 'creator' => 'jamie', > 'date' => '2003-11-21T13:33:00+00:00', > 'subject' => 'debian' > }, > 'description' => 'Sean was one of many to pass along the > bad news from the debian-announce mailing list: "Some Debian Project > machines have been compromised. This is a very ...', > 'http://purl.org/rss/1.0/modules/slash/' => { > 'section' => > 'articles', > 'department' > => 'batten-down-hatches', > 'comments' > => '147', > 'hitparade' > => '147,136,105,58,15,7,5' > }, > 'title' => 'Debian Project Servers Compromised', > 'item' => ' > > > > > > > > > > > ',...