NAME
HTML::Microformats::XOXO - the XOXO microformat
SYNOPSIS
TODO
DESCRIPTION
HTML::Microformats::XOXO inherits from HTML::Microformats::BASE. See the base class definition for a description of property getter/setter methods, constructors, etc.
The data
method returns an HTML::Microformats::XOXO::UL, HTML::Microformats::XOXO::OL or HTML::Microformats::XOXO::DL object.
HTML::Microformats::XOXO::DL
Represents an HTML DL element.
$dl->get_values($key)
-
Treating a DL as a key-value structure, returns a list of values for a given key. Each value is an HTML::Microformats::XOXO::DD object.
$dl->as_hash
-
Returns a hash of keys pointing to arrayrefs of values, where each value is an HTML::Microformats::XOXO::DD object.
HTML::Microformats::XOXO::UL
Represents an HTML UL element.
HTML::Microformats::XOXO::OL
Represents an HTML OL element.
HTML::Microformats::XOXO::LI
Represents an HTML LI element.
$li->get_link_href
-
Returns the URL linked to by the first link found within the item.
$li->get_link_rel
-
Returns the value of the rel attribute of the first link found within the item. This is an unparsed string.
$li->get_link_type
-
Returns the value of the type attribute of the first link found within the item. This is an unparsed string.
$li->get_link_title
-
Returns the value of the rel attribute of the first link found within the item if present; the link text otherwise.
$li->get_text
-
Returns the value of the text in the LI element except for the first DL element within the LI, and the first UL or OL element.
$li->get_html
-
Returns the HTML code in the LI element except for the first DL element within the LI, and the first UL or OL element.
$li->get_properties
-
Returns an HTML::Microformats::XOXO::DL object representing the first DL element within the LI.
$li->get_children
-
Returns an HTML::Microformats::XOXO::OL or HTML::Microformats::XOXO::UL object representing the first OL or UL element within the LI.
$li->get_value($key)
-
A shortcut for
$li->get_properties->get_values($key)
.
HTML::Microformats::XOXO::DD
This has an identical interface to HTML::Microformats::XOXO::LI.
MICROFORMAT
HTML::Microformats::XOXO supports XOXO as described at http://microformats.org/wiki/xoxo.
RDF OUTPUT
XOXO does not map especially naturally to RDF, so this module returns the data as a JSON literal using the property http://open.vocab.org/terms/json.
BUGS
Please report any bugs to http://rt.cpan.org/.
SEE ALSO
HTML::Microformats::BASE, HTML::Microformats.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT
Copyright 2008-2010 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.