[lxml-dev] text of an etree Element
Ofer Kalisky
kalisky at hotmail.com
Thu Jun 19 08:49:00 CEST 2008
Hi,
When I access some node's text (node.text) I get only the first text value of it, for example, if the html is:
<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")?
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20080619/5621ce37/attachment-0001.htm
More information about the lxml-dev
mailing list