Skip Menu |

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

Report information
The Basics
Id: 47981
Status: resolved
Priority: 0/
Queue: XML-Feed

People
Owner: Nobody in particular
Requestors: sean [...] brunnock.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Problem parsing certain Blogspot feeds
It appears that this module has trouble parsing RSS feeds for Blogspot blogs that have enabled "short" feeds. For example- my $feed = XML::Feed->parse(URI->new('http://brunnock.blogspot.com/feeds/posts/default?alt=rss')) or die XML::Feed->errstr; for my $entry ($feed->entries) { print 'The title works- ', $entry->title, "\n\n"; print "The body doesn't...\n", $entry->content->body, "\n\n"; print "Nor the summary...\n", $entry->summary->body, "\n\n"; } The code above will work with short or full atom feeds and with full RSS feeds.
This turned out to be due to Blogspot using slightly odd atom namespaced elements in the short RSS feed. This should be fixed in r155 in svn http://code.sixapart.com/svn/XML-Feed/trunk/ but I'll roll a release soon.