NAME

HTML::TreeBuilder::LibXML - HTML::TreeBuilder::XPath compatible interface with libxml

SYNOPSIS

use HTML::TreeBuilder::LibXML;
HTML::TreeBuilder::LibXML->replace_original(); # replace HTML::TreeBuilder::LibXML->new

DESCRIPTION

HTML::TreeBuilder is bit slow for some use case. and, XML::LibXML is very fast! I want to use it. But, some libraries uses HTML::TreeBuilder.

HTML::TreeBuilder::LibXML is drop-in-replacement for HTML::TreeBuilder::XPath.

Currently, this module implements good enough methods for work with Web::Scraper.

BENCHMARK

This 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%         --

AUTHOR

Tokuhiro Matsuno <tokuhirom slkjfd gmail.com>

THANKS TO

woremacx++ http://d.hatena.ne.jp/woremacx/20080202/1201927162

Tatsuhiko Miyagawa

id:dailyflower

SEE ALSO

HTML::TreeBuilder, HTML::TreeBuilder::XPath

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.