24 Aug
2008
24 Aug
'08
9:36 p.m.
Piet van Oostrum wrote:
John J Lee <jjl@pobox.com> (JJL) wrote: JJL> doc = fromstring('<doc>text1<b>text2</b>text3<b>text4</b>text5</doc>') JJL> b1, b2 = doc.getchildren() JJL> print doc.text + b1.tail + b2.tail
print doc.text+''.join(c.tail for c in doc.getchildren())
print doc.text+''.join(c.tail for c in doc) Stefan