Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Anonymous Monk
on Nov 18, 2019 at 17:34 UTC ( #11108875=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using XML::RSS to produce an RSS 2.0 feed with Dates within Items
in thread Using XML::RSS to produce an RSS 2.0 feed with Dates within Items

From XML::RSS:
$rss->add_item (title=>$title, link=>$link, dc=>{ subject=>$subject, c +reator=>$creator, date=>$date });
  • Comment on Re^3: Using XML::RSS to produce an RSS 2.0 feed with Dates within Items
  • Download Code

Replies are listed 'Best First'.
Re^4: Using XML::RSS to produce an RSS 2.0 feed with Dates within Items
by mldvx4 (Scribe) on Nov 19, 2019 at 08:52 UTC

    Yes, one would think so based on the manual page, but in practice it does not print any of Dublin Core metadata which has been added. The following adds it to the object just fine:

    $rss->add_item( title => $title, link => $link, description => $description, pubDate => $modified_date, dc => { subject=>'foo', date => $modified_date }, );

    And that addition can be seen using Data::Dumper. However, print $rss->as_string; is failing to show the full RSS entry. It shows only certain fields. So my script is still missing something, but what?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2019-12-09 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?