Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Anonymous Monk
on Nov 19, 2019 at 14:20 UTC ( [id://11108902]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-23 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found