PierreForget has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

In an Atom feed, I am trying to extract parts of the posts. Meaning here, the first 50 words of each post.

I am able to extract easily the standard stuff with XML::Feed, like "author", "link", "published" or "title".

If I use "content", I get nothing. If I could get "content" extracted, I could manage to get what I want.

Or if I use "name", which is a sub element of "author", I also get nothing.

I was thinking of putting in the blog (from Blogger) some tags like this (in the post HTML edit):

<extract>text to extract</extract>

But I can't find a way to do it, unless rewriting the code from Feed.pm

Is there a simple way, if I can call it like that?

The Atom feed is from blogger:

http://www.stlucia-off-the-beaten-path.com/

Thanks in advance

Replies are listed 'Best First'.
Re: XML::Feed extra element
by Anonymous Monk on May 02, 2011 at 03:51 UTC

      The Atom feed is from blogger:

      http://www.stlucia-off-the-beaten-path.com/