XML::Feed::Format::hAtom - plugin to provide transparent parsing and generation support for hAtom to XML::Feed
use XML::Feed; my $feed = XML::Feed->parse(URI->new('http://example.com/hatom.html')) or die XML::Feed->errstr; print $feed->title, "\n"; for my $entry ($feed->entries) { }
XML::Feed is a syndication feed parser for both RSS and Atom feeds. It also implements feed auto-discovery for finding feeds, given a URI.
XML::Feed::Format::hAtom adds transparent support for the hAtom microformat.
http://microformats.org/wiki/hatom
See XML::Feed and XML::Feed::Entry - hAtom support is transparent.
Whether or not this in hAtom feed.
Initialise a new Feed from a string.
Alias for parse.
parse
Returns the id of the feed.
Returns the format of the feed (hAtom).
hAtom
The title of the feed/channel.
The url base of the feed/channel.
The permalink of the feed/channel.
The description or tagline of the feed/channel.
Alias for $feed->tagline.
The author of the feed/channel.
The language of the feed.
The copyright notice of the feed.
A DateTime object representing the last-modified date of the feed.
If present, $modified should be a DateTime object.
Alias for modified.
The generator of the feed.
The category for this feed.
The Atom Self-link of the feed:
http://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html
A string.
The longitude and latitude of the entry if available.
A list of the entries/items in the feed. Returns an array containing XML::Feed::Entry objects.
A synonym for $feed-entries>.
Adds an entry to the feed. $entry should be an XML::Feed::Entry object in the correct format for the feed.
Returns an HTML representation of the feed, in the format determined by the current format of the $feed object.
XML::Feed::Format::hAtom is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Written by Simon Wistow <swistow@sixapart.com>
Except where otherwise noted, XML::Feed::Format::hAtom is Copyright 2008 Six Apart, cpan@sixapart.com. All rights reserved.
The latest version of XML::Feed::Format::hAtom can be found at
http://code.sixapart.com/svn/XML-Feed-Format-hAtom/trunk/
To install XML::Feed::Entry::Format::hAtom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Feed::Entry::Format::hAtom
CPAN shell
perl -MCPAN -e shell install XML::Feed::Entry::Format::hAtom
For more information on module installation, please visit the detailed CPAN module installation guide.