Does libxml2 support XPath 2.0 or not?
问题 I've tried to use the XPath 2.0 exp //span/string(.) in libxml2 , but it doesn't work. So, my question is: does libxml2 support XPath 2.0 or not? 回答1: As far as I know -- not. The prevailing majority of XPath 2.0 implementations are part of XSLT 2.0 processors or XQuery processors. 回答2: According to this 2007 email from the maintainer of libxml2, libxml2 does not, and will not, support XPath 2.0. 回答3: you might be interested in an XPath 2.0 extension to libxml2 - however, 2 caveats apply: it