Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
4453
Status:
rejected
Priority:
Low/Low
Queue:

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

BugTracker
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' => ' > > > > > > > > > > > ',...


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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