Uhhmmmm, I made some tests and you are right in saying that what I suggested wouldn't work: when I do something like
Code:
a = ET.Element('a')
a.text = '<x>This is inside x tags inside a.</x>'
the '<' and '>' inside the text are (correctly) encoded so that the result is:
Code:
<a><x>This is inside x tags inside a.</x></a>
Oh, well, at least I have learned something
Keep up the good work and thanks for what you are doing for us