Skip Menu |

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

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

Owner: simonw [...]
Requestors: SHLOMIF [...]

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

Subject: Incorporating Atom entries into RSS ones does not work.
Download (untitled) / with headers
text/plain 505b
As the attached script demonstrates, when splice()-ing Atom feeds into an XML::Feed::RSS, the entries don't get read, and one gets an empty feed. From an investigation it seems the add_entry() function is: <<<<<<< sub add_entry { my $feed = shift; my($entry) = @_; $feed->{rss}->add_item(%{ $entry->unwrap }); } Show quoted text
Now in an Atom entry title() is calculated rather than being part of the hash. As a result, XML::RSS ignores these entries because they don't have a "title" property.
text/x-perl 530b
package Shlomif::Rss::Aggregate; use strict; use warnings; use XML::Feed; use LWP::UserAgent; my $feed = XML::Feed->new("RSS") or die XML::Feed->errstr; foreach my $url ("", ) { my $url_feed = XML::Feed->parse(URI->new($url)) or die XML::Feed->errstr; print "Collected $url\n"; $feed->splice($url_feed); } $feed->link(""); open my $out, ">", "test1.xml"; binmode $out, ":utf8"; print {$out} $feed->as_xml(); close($out);
Should be fixed as part of 0.23

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to