Perl Monk, Perl Meditation | |
PerlMonks |
Adding Dublin Core to RSS 2.0 via XML::RSS?by mldvx4 (Friar) |
on Aug 31, 2022 at 15:11 UTC ( [id://11146565]=perlquestion: print w/replies, xml ) | Need Help?? |
mldvx4 has asked for the wisdom of the Perl Monks concerning the following question: If I read correctly in the manual page it is possible to add Dublin Core (DC) metadata to RSS 2.0 feeds, even via the XML::RSS module. I seem to be missing something. If I run that, I get the following, without the Dublin Core. I was expecting the Dublin Core metadata elements to somehow show up.
I see that xmlns:dc="http://purl.org/dc/elements/1.1/" is missing from the RSS element. Perhaps I have to add the namespace If so, how do I add it for RSS 2.0, not 1.0? The module seems to accept both legitimate DC elements as well as random stuff when making objects but does not print them. ---- Edit: I've also tried,
and
Neither produce any visible changes, even using Data::Dumper.
Back to
Seekers of Perl Wisdom
|
|