Tim Arnold wrote: > Thanks for the great answers--I learned a lot. I'm looking forward to the ET > 1.3 version.
Note that there is a difference in behaviour, though. lxml.etree forces Elements to be uniquely positioned in a tree, so the code I posted relies on the "side effect" of automatically removing an Element from the old position when inserting it at a different place. ElementTree does not do that, so this code is not portable between the two libraries. Stefan -- http://mail.python.org/mailman/listinfo/python-list