XML::Atom::Entry - Atom entry
use XML::Atom::Entry; my $entry = XML::Atom::Entry->new; $entry->title('My Post'); $entry->content('The content of my post.'); my $xml = $entry->as_xml; my $dc = XML::Atom::Namespace->new(dc => 'http://purl.org/dc/elements/1.1/'); $entry->set($dc->subject, 'Food & Drink');
Creates and returns a new entry object.
Returns the content of the entry. If $content is given, sets the content of the entry. Automatically handles all necessary escaping.
Returns an XML::Atom::Author object representing the author of the entry, or undef if there is no author information present.
undef
If $author is supplied, it should be an XML::Atom::Author object representing the author. For example:
my $author = XML::Atom::Author->new; $author->name('Foo Bar'); $author->email('foo@bar.com'); $entry->author($author);
Please see the XML::Atom manpage for author, copyright, and license information.
To install XML::Atom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Atom
CPAN shell
perl -MCPAN -e shell install XML::Atom
For more information on module installation, please visit the detailed CPAN module installation guide.