Hi everyone, I have been an lxml user but not a veteran. It seems to me that currently lxml does not support XPointer functions such as string-range() or range-to(). Have I missed anything? Thanks for your help! Best, Fan
C. Fan Du schrieb am 03.08.20 um 03:04:
I have been an lxml user but not a veteran. It seems to me that currently lxml does not support XPointer functions such as string-range() or range-to(). Have I missed anything? Thanks for your help!
lxml does not currently wrap the XPointer API of libxml2: http://xmlsoft.org/html/libxml-xpointer.html I wouldn't mind seeing that done, though. As far as I understand from a quick look, there's xmlXPtrEval() which eveluates an XPointer expression and returns an XPath result, e.g. a node set. If that gets based on the existing XPath wrapper, I don't think it would be difficult to add. PR welcome. Stefan
participants (2)
-
C. Fan Du
-
Stefan Behnel