lxml/ElementTree and .tail
Paul Boddie
paul at boddie.org.uk
Thu Nov 16 04:59:52 EST 2006
Stefan Behnel wrote:
>
[Remove an element, remove following nodes]
> Yes, it is. Just look at the API. It's an attribute of an Element, isn't it?
> What other API do you know where removing an element from a data structure
> leaves part of the element behind?
I guess it depends on what you regard an element to be...
[...]
> IMHO, DOM has a pretty significant mismatch with Python.
...in the DOM or otherwise:
http://www.w3.org/TR/2006/REC-xml-20060816/#sec-logical-struct
Paul
More information about the Python-list
mailing list