[lxml-dev] text of an etree Element
jholg at gmx.de
jholg at gmx.de
Thu Jun 19 09:09:54 CEST 2008
Hi,
>
> <html><body>asdf<b>something</b>qwer</body></html>
>
> and "node" is the "<body>", then node.text retrieves asdf.
> if I use node.itertext(), I get [asdf, something, qwer], which is again,
> not what I want...
>
> is there a way to reach the other text of a node ("qwer")?
Have you already looked
at http://codespeak.net/lxml/tutorial.html#elements-contain-text ? Cheers,Holger
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080619/e201f78a/attachment.htm
More information about the lxml-dev
mailing list