tokuhirom/html--treebuilder--libxml — pull request #2 by genehack (2011-11-29 06:05:45+00:00)
Title: Additional compat methods

I'm trying to replace some use of HTML::TreeBuilder::XPath with HTML::TreeBuilder::LibXML -- but to do so, I require some more parts of the HTML::TB::XPath::Node interface.

These commits add the 'exists', 'find', and 'findvalues' methods. They also alias 'findnodes_as_string(s)' to 'findvalue(s)'.

I'm not completely sure what I have these methods returning is exactly right; suggestions for improvements are welcome. If this isn't at all right, please let me know how you think this interface should be extended to support these missing methods.

Thanks,
john.