Skip Menu |

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

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

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

Bug Information
Severity: Important
Broken in: 0.08
Fixed in: (no value)



Subject: Content of RSS entry disappears in as_xml
Content added to an RSS entry simply does not appear in the RSS feed when the feed is rendered via ->as_xml. I suspect this has something to do with XML::Feed's interaction with XML::RSS, particularly in how the entry is structured. The content is visible in a Dumper dump of the entry but somehow is not rendered. (This is perl, v5.8.4 built for i386-linux-thread-multi) (Linux li9-121 2.6.15-linode16 #1 Wed Jan 4 17:30:25 EST 2006 i686 GNU/Linux) Here's a test case: use strict; use XML::Feed; use Data::Dumper; my $rss_feed = XML::Feed->new('RSS'); $rss_feed->title('Happy Feed'); $rss_feed->author('Ask Bjork Tate'); $rss_feed->link('http://nowhere.com'); $rss_feed->language('en-US'); $rss_feed->description('not existing since who knows when'); my $rss_entry = XML::Feed::Entry->new('RSS'); $rss_entry->title("Title is not always a required element in RSS2"); $rss_entry->content("But that's XML::RSS's problem. Oh, and this would be an XML::Feed::Content item as specced in the docs, but there is no constructor documented for XML::Feed::Content and I know this works anyway."); $rss_entry->link('http://nowhere.com/themiddle'); $rss_feed->add_entry($rss_entry); print Dumper($rss_feed->entries); print $rss_feed->as_xml, "\n\n\n"; print "it's broken\n" unless $rss_feed->as_xml =~ /problem/i;
I think this is fixed in 0.2 I've added a test for it in svn. http://code.sixapart.com/svn/XML-Feed/trunk/t/09-missing-content-bug.t