Skip Menu | will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 96027
Status: open
Priority: 0/
Queue: XML-RSS

Owner: Nobody in particular
Requestors: karjala [...]

Bug Information
Severity: Wishlist
Broken in: 1.55
Fixed in: (no value)

Subject: Allow adding extra XML elements
Download (untitled) / with headers
text/plain 576b
I need to add pubsubhubbub links to my RSS 2.0 feeds. See Also to remove the validator warning from my RSS 2.0 feed, I must add <atom:link href="$url" rel="self" type="application/rss+xml" /> as the first child of <channel>, and change <rss to <rss xmlns:atom="" - Then my feed validates 100%. Doing these changes with a regex could be fragile. Therefore, I think it might be best if your module would somehow support them. But maybe not. Feel free to close my ticket.
Subject: [ #96027] - Already possible in some cases
Date: Fri, 17 Oct 2014 15:50:55 +0100
To: bug-XML-RSS [...]
From: Athanasius <cpan [...]>
Download (untitled) / with headers
text/plain 678b
I came across this bug after encountering the same atom-related validation error. It turns out that XML::RSS's modules facility will allow you to add this stuff: $self->{'rss'} = XML::RSS->new(version => '2.0'); $self->{'rss'}->add_module(prefix => 'atom', uri => ''); $self->{'rss'}->channel( ... atom => { 'link' => { 'href' => '<self URL>', 'rel' => 'self', 'type' => 'application/rss+xml' } } ); Results in: <rss version="2.0" xmlns:blogChannel="" xmlns:atom="" Show quoted text
<channel> ... <atom:link href="<self URL>" rel="self" type="application/rss+xml"/> ...

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

Please report any issues with to