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;
}