XML::F...ontent(3pm)
β¨ NAME β¨
XML::Feed::Content β it's a wrapper for content objects, bestie π
So like, the manual page is XML::F...ontent(3pm) from the User Contributed Perl Documentation, and honestly? She's a tiny little module with main character energy and we're obsessed. π
πΈ SYNOPSIS πΈ
my $content = $entry->content;
print $content->body;
That's it. That's the whole vibe. Grab the content, print the body. π¦
π DESCRIPTION π
okay so picture this: XML::Feed::Content represents a content object inside an XML::Feed::Entry entry in a syndication feed. β¨
It could be a <description> element in an RSS feed, a <content> element in an Atom feed, etc. In other words β and this is the part that ate π
β it's literally any element where knowing both the actual data and the type of data is useful.
π USAGE π
π§ wrap
Take params and turn them into a XML::Feed::Content object. Glow-up complete. β¨
π§ new
A synonym for wrap. Same energy, different name, we love a flexible icon. π
π§ $content->body
The actual data. The moment. The content of the content. π₯
π§ $content->type
The MIME type of the content in body.
Ngl, this is really only useful in Atom feeds, because RSS feeds do not specify the type of content included in an entry. In RSS feeds, generally the MIME type defaults to text/html. π
π§ $content->base
The url base of the content. π«Ά
π AUTHOR & COPYRIGHT π
Please see the XML::Feed manpage for author, copyright, and license information. π
and that's the whole page, bestie β slay, no cap π
Sign-off time π: this is perl v5.40.1, dated 2026-02-21, and it lives in XML::F...ontent(3pm). Go forth and parse feeds, queen. ππ
π¦ where this page comes from
- ubuntu stonking: libxml-feed-perl 1.0.0+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms