Subject: | spaces in tags are not discarded |
Date: | Sat, 10 Dec 2011 17:17:14 +0200 |
To: | bug-XML-Feed [...] rt.cpan.org |
From: | Gabor Szabo <szabgab [...] gmail.com> |
When there are extra spaces in the feed (e.g. in <link>, <dc:date>)
<item rdf:about="http://www.cantrell.org.uk/david/journal/id/olympic-costs-yet-again">
<title> Oh look, more Olympic financial incompetence </title>
<link> http://www.cantrell.org.uk/david/journal/id/olympic-costs-yet-again</link>
<description></description>
<dc:date> 2011-12-06T22:36:07Z </dc:date>
<dc:creator> </dc:creator>
taken from http://www.cantrell.org.uk/david/journal/format/rss
the spaces are not discarded.
use strict;
use warnings;
use XML::Feed;
my $feed = XML::Feed->parse(URI->new('http://www.cantrell.org.uk/david/journal/format/rss'))
or die XML::Feed->errstr;
for my $entry ($feed->entries) {
printf ("'%s'\n", $entry->link);
print $entry->issued;
}
the link user can easily fix but "issued" is undef
Using XML::Feed 0.46