in reply to Using XML::RSS to produce an RSS 2.0 feed with Dates within Items

I am looking at an old script by John Bokma to build an RSS 2.0 file. I would like for each Item to include either a PubDate or a Dublin Core date.

You can't do that with RSS 2.0, try 1.0:

XML::RSS->new(version => '1.0')

  • Comment on Re: Using XML::RSS to produce an RSS 2.0 feed with Dates within Items

Replies are listed 'Best First'.
Re^2: Using XML::RSS to produce an RSS 2.0 feed with Dates within Items
by Anonymous Monk on Feb 03, 2022 at 09:26 UTC

    I know this is an old post, but I was facing a similar issue as mldvx4. So for anybody stumbling on this:

    You can use Dublin Core with RSS 2.0 feeds, if you modify the file V2_0.pm from the XML::RSS module (on my PC, it was at: /usr/local/share/perl/5.26.1/XML/RSS/Private/Output/V2_0.pm). You need to add the following line to the function "_out_item_2_0_tags":

    $self->_out_dc_elements($item);

    That's it!