开发者

python 2.5.1 and supported version of xpath

开发者 https://www.devze.com 2023-01-07 23:32 出处:网络
trying to figure out how to determine what version of XPath is supported by python 2.4.3/2.5.1 using libxml2dom.

trying to figure out how to determine what version of XPath is supported by python 2.4.3/2.5.1 using libxml2dom.

in looking through various docs, i must be missing something!

basically, i'm considering how/if i can have an XPath function, and use regex within the XPath... i understand the XPath v2.0 s开发者_如何学JAVAupports using regex, so i'm hopeful that i can simply do an import libxml2dom, and have the ability to then incorporate regex in the XPath functions..

thanks


I believe that Python is loading whichever version of libxml2 is on your machine. I think that all versions of libxml2 implement XPath 1.0. I don't know of any Python ready implementation of XPath 2.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消