HTML::TreeBuilder::Select - Traverse a HTML tree using CSS selectors
Version 0.11
my $tree = new HTML::TreeBuilder::Select my @entries = $tree->select("div.main div.entry");
Search the tree for elements matching the QUERY, which should be a CSS selector.
QUERY
Returns a string representation of the tree in (possibly invalid) HTML format. This method will preserve any text outside of the root-level elements and NOT automatically wrap the content in <html><head></head><body> ... </body></html>.
A convenience method that will return either the containing element of the tree, or a simple div container containing the root-level elements. This is very similar to the guts method, but container will also remember whether the tree had a containing root element or not.
guts
container
Same as HTML::TreeBuilder::delete
Robert Krimen, <rkrimen at cpan.org>
<rkrimen at cpan.org>
Please report any bugs or feature requests to bug-html-treebuilder-select at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-TreeBuilder-Select. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-html-treebuilder-select at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc HTML::TreeBuilder::Select
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/HTML-TreeBuilder-Select
CPAN Ratings
http://cpanratings.perl.org/d/HTML-TreeBuilder-Select
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-TreeBuilder-Select
Search CPAN
http://search.cpan.org/dist/HTML-TreeBuilder-Select
Copyright 2007 Robert Krimen, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Element, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Element
CPAN shell
perl -MCPAN -e shell install HTML::Element
For more information on module installation, please visit the detailed CPAN module installation guide.