Query: html::treebuilder::libxml
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTML::TreeBuilder::LibXML(3pm) User Contributed Perl Documentation HTML::TreeBuilder::LibXML(3pm)NAMEHTML::TreeBuilder::LibXML - HTML::TreeBuilder and XPath compatible interface with libxmlSYNOPSISuse HTML::TreeBuilder::LibXML; my $tree = HTML::TreeBuilder::LibXML->new; $tree->parse($html); $tree->eof; # $tree and $node compatible to HTML::Element my @nodes = $tree->findvalue($xpath); for my $node (@nodes) { print $node->tag; my %attr = $node->all_external_attr; } HTML::TreeBuilder::LibXML->replace_original(); # replace HTML::TreeBuilder::XPath->newDESCRIPTIONHTML::TreeBuilder::XPath is libxml based compatible interface to HTML::TreeBuilder, which could be slow for a large document. HTML::TreeBuilder::LibXML is drop-in-replacement for HTML::TreeBuilder::XPath. This module doesn't implement all of HTML::TreeBuilder and HTML::Element APIs, but enough methods are defined so modules like Web::Scraper work.BENCHMARKThis is a benchmark result by tools/benchmark.pl Web::Scraper: 0.26 HTML::TreeBuilder::XPath: 0.09 HTML::TreeBuilder::LibXML: 0.01_01 Rate no_libxml use_libxml no_libxml 5.45/s -- -94% use_libxml 94.3/s 1632% --AUTHORTokuhiro Matsuno <tokuhirom slkjfd gmail.com> Tatsuhiko Miyagawa <miyagawa@cpan.org> Masahiro ChibaTHANKS TOworemacx++ http://d.hatena.ne.jp/woremacx/20080202/1201927162 id:dailyflowerSEE ALSOHTML::TreeBuilder, HTML::TreeBuilder::XPathLICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-04-02 HTML::TreeBuilder::LibXML(3pm)
Related Man Pages |
---|
html::formatter(3) - suse |
html::parse(3) - suse |
html::parse(3) - centos |
html::treebuilder::xpath(3pm) - debian |
xml::element(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
HTML code remove |
HTML Encoded characters -- Perl |
HTML question /!/ |
Advanced sed/awk help |
How to remove multiline HTML tags from a file? |