Skip Menu |

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

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

People
Owner: simonw [...] cpan.org
Requestors: kent [...] c2group.net
Cc:
AdminCc:

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



Subject: RSS 2.0 Feed fails to validate
While validating a feed created with XML::Feed, I encountered the error message: "The prefix dcterms generally uses the namespace http://purl.org/dc/terms/" Reference: http://validator.w3.org/feed/docs/warning/ReservedPrefix.html I made a slight alteration to XML::Feed::RSS.pm to have the feed validate properly, diff -u is attached.
Subject: rss.pm.patch
--- XML/Feed/RSS.pmorig Sat Apr 22 00:13:55 2006 +++ XML/Feed/RSS.pm Mon Mar 12 11:41:22 2007 @@ -14,7 +14,7 @@ eval "use $PREFERRED_PARSER"; die $@ if $@; $feed->{rss} = $PREFERRED_PARSER->new( version => '2.0' ); $feed->{rss}->add_module(prefix => "content", uri => 'http://purl.org/rss/1.0/modules/content/'); - $feed->{rss}->add_module(prefix => "dcterms", uri => 'http://purl.org/rss/1.0/modules/dcterms/'); + $feed->{rss}->add_module(prefix => "dcterms", uri => 'http://purl.org/dc/terms/'); $feed; }
Just working out if the longer version should ever be used (RSS version <2.0?) and then I'll roll a new release today or tomorrow.
Should be fixed in 0.22