[lxml-dev] xpath on text nodes
Jamie Norrish
jamie at artefact.org.nz
Wed Apr 29 10:44:31 CEST 2009
The xpath method is currently available only for ElementTree and Element
objects. Is it possible for it to be available to text nodes also?
My current use case is getting a certain length text context for a
particular element node, and I'd like to implement that through a
recursive call to a function that returns the content of a supplied text
node appended to the content of the next text node in sequence (provided
the required length has not been passed).
Jamie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20090429/501d024e/attachment.pgp
More information about the lxml-dev
mailing list