Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::microformats::utilities(3pm) [debian man page]

HTML::Microformats::Utilities(3pm)			User Contributed Perl Documentation			HTML::Microformats::Utilities(3pm)

NAME
HTML::Microformats::Utilities - utility functions for searching and manipulating HTML DESCRIPTION
This module includes a few functions for searching and manipulating HTML trees. "searchClass($class, $node, [$prefix])" Returns a list of elements which are descendents of $node and have class name $class. $class can be a plain string, or a regular expression. If $prefix is supplied it is used as an optional prefix for $class. For example, with $class 'bar' and $prefix 'foo', searchClass will look for all of the following classes: 'bar', 'foobar', 'foo-bar' and 'foo:bar'. "searchAncestorClass($class, $node, [$skip])" Returns the first element which is an ancestor of $node having class name $class. $class can be a plain string, or a regular expression. $skip is the number of levels of ancestor to skip. If $skip is 0, then potentially searchAncestorClass will return $node itself. If $skip is 1, then it will not return $node but could potentially return its parent, and so on. "searchRel($relationship, $node)" Returns a list of elements which are descendents of $node and have relationship $relationship. $relationship can be a plain string, or a regular expression. "searchRev($relationship, $node)" As per searchRel, but uses the rev attribute. "searchID($id, $node)" Returns a descendent of $node with id attribute $id, or undef. "searchAncestorTag($tagname, $node)" Returns the nearest ancestor of $node with tag name $tagname, or undef. "stringify($node, \%options)" Returns a stringified version of a DOM element. This is conceptually equivalent to "$node->textContent", but follows microformat- specific stringification rules, including value excerption, the abbr pattern and so on. "xml_stringify($node)" Returns an XML serialisation of a DOM element. This is conceptually equivalent to "$node->toStringEC14N", but hides certain attributes which HTML::Microformats::DocumentContext adds for internal processing. BUGS
Please report any bugs to <http://rt.cpan.org/>. SEE ALSO
HTML::Microformats. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2008-2011 Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2011-12-06 HTML::Microformats::Utilities(3pm)

Check Out this Related Man Page

HTML::Microformats::Format::hEntry(3pm) 		User Contributed Perl Documentation		   HTML::Microformats::Format::hEntry(3pm)

NAME
HTML::Microformats::Format::hEntry - an hAtom entry SYNOPSIS
use Data::Dumper; use HTML::Microformats::DocumentContext; use HTML::Microformats::Format::hAtom; my $context = HTML::Microformats::DocumentContext->new($dom, $uri); my @feeds = HTML::Microformats::Format::hAtom->extract_all( $dom->documentElement, $context); foreach my $feed (@feeds) { foreach my $entry ($feed->get_entry) { print $entry->get_link . " "; } } DESCRIPTION
HTML::Microformats::Format::hEntry is a helper module for HTML::Microformats::Format::hAtom. This class is used to represent entries within feeds. Generally speaking, you want to use HTML::Microformats::Format::hAtom instead. HTML::Microformats::Format::hEntry inherits from HTML::Microformats::Format. See the base class definition for a description of property getter/setter methods, constructors, etc. Additional Method o "to_atom" This method exports the data as an XML file containing an Atom <entry>. It requires XML::Atom::FromOWL to work, and will throw an error at run-time if it's not available. o "to_icalendar" This method exports the data in iCalendar format (as a VJOURNAL). It requires RDF::iCalendar to work, and will throw an error at run- time if it's not available. BUGS
Please report any bugs to <http://rt.cpan.org/>. SEE ALSO
HTML::Microformats::Format, HTML::Microformats, HTML::Microformats::Format::hAtom, HTML::Microformats::Format::hNews. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2008-2011 Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2011-12-06 HTML::Microformats::Format::hEntry(3pm)
Man Page