The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More;
use HTML::TreeBuilder::LibXML;

plan tests => 2;

{
    my $root = HTML::TreeBuilder::LibXML->new_from_content("<html><body>", "<p>foo</p>", "</body></html>");
    is $root->findvalue("//p"), "foo";
}

{
    my $root = HTML::TreeBuilder::LibXML->new_from_file("t/test.html");
    is $root->findvalue("//p"), "bar";
}