http://rt.cpan.org/Ticket/Display.html?id=25393
(Kent Cowgill KCOWGILL)
Revision history for XML::Feed
+0.22
+ - Correct namespace for terms in RSS
+ http://rt.cpan.org/Ticket/Display.html?id=25393
+ (Kent Cowgill KCOWGILL)
+
+
0.21 2008.10.15
- Remove the inc directory because it's not needed anymore
eval "use $PREFERRED_PARSER"; die $@ if $@;
$feed->{rss} = $PREFERRED_PARSER->new(%args);
$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/');
+ if ($args{'version'} >= 2.0) {
+ $feed->{rss}->add_module(prefix => "dcterms", uri => 'http://purl.org/dc/terms/');
+ } else {
+ $feed->{rss}->add_module(prefix => "dcterms", uri => 'http://purl.org/rss/1.0/modules/dcterms/');
+ }
$feed;
}