ElementTree, how to get the whole content of a tag

Damjan gdamjan at gmail.com
Wed Mar 16 23:13:05 CET 2005

Given the folowing XML snippet, I build an ElementTree instance with
et=ElementTree.fromstring(..). Now et.text returns just '\n  text\n  some
other text'. 
Is there any way I could get everything between the <div> and </div> tag?

  some other text<br/>
  and then some more


More information about the Python-list mailing list