elementtree question
Stefan Behnel
stefan.behnel-n05pAM at web.de
Wed Sep 26 07:32:11 EDT 2007
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
More information about the Python-list
mailing list