Fredrik Lundh wrote:
> Stefan Behnel wrote:
> 
>> If you want to copy part of of removed element back into the tree,
>> feel free to do so.
> 
> and that can of course be done with a short helper function.

Oh, and obviously with a custom Element class in lxml that does this
automatically for you behind the scenes.

http://codespeak.net/lxml/element_classes.html
http://codespeak.net/lxml/element_classes.html#default-class-lookup

Stefan
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to