Unfortunately, libxml2 is broken, anyway.
In reply to Re: Is there really no Perl module supporting XPath 2.0? by choroba in thread Is there really no Perl module supporting XPath 2.0? by Darkwing