lxml/ElementTree and .tail
Stefan Behnel
stefan.behnel-n05pAM at web.de
Thu Nov 16 08:35:12 EST 2006
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
More information about the Python-list
mailing list