Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: RSS finding date of publication using XML::Feed

by mldvx4 (Scribe)
on Sep 12, 2019 at 15:05 UTC ( #11106071=note: print w/replies, xml ) Need Help??


in reply to Re: RSS finding date of publication using XML::Feed
in thread RSS finding date of publication using XML::Feed

Thanks. That does the trick, but may I ask how did you find that? I presume it can be inferred from somewhere within the module's source. It was not in the manual page at all.

  • Comment on Re^2: RSS finding date of publication using XML::Feed

Replies are listed 'Best First'.
Re^3: RSS finding date of publication using XML::Feed
by poj (Abbot) on Sep 12, 2019 at 15:24 UTC

    I used Data::Dump to inspect the structure of $element

    use Data::Dump 'pp'; my $feed = XML::Feed->parse(\*DATA) or die XML::Feed->errstr; for my $entry ($feed->entries) { pp $entry; }
    outputs
    bless({ _version => "2.0", entry => { "dc" => { creator => "foo bar three" }, "description" => " <p align=\"center\">\n<span style=\"font-size: +0.75em;\"> </span></p>\n<p>words words words</p> ", "guid" => "https://example.org/", "http://purl.org/dc/elements/1.1/" => { creator => "foo bar three" + }, "isPermaLink" => "", "item" => "\n\n\n\n\n\n\n", "link" => "https://www.example.org/", "pubDate" => "2019-09-10 13:38:00", "title" => " Foo Bar Two ", }, }, "XML::Feed::Entry::Format::RSS")
    poj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2019-12-15 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?