<br>The nil node <Fubar/> is not deannotated as I would expect in the following snippet. I could not find a reference to this behaviour in the archives or documentation. Is this a design feature for which there is a work around, or a bug? I'm using lxml-2.2-py2.5-linux-i686.<br>
<div class="gmail_quote">
<br>Thanks!<br><br>#### CODE ####<br><br>import lxml.etree<br>import lxml.objectify<br><br>x = lxml.objectify.fromstring('<root><Bar/></root>')<br>x.Foo = ''<br>x.Fubar = None<br>lxml.objectify.deannotate(x)<br>
lxml.etree.cleanup_namespaces(x)<br>print lxml.etree.tostring(x)<br><br>#### END CODE ###<br><br><root><Bar/><Foo></Foo><Fubar xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:nil="true"/></root><br>
</div><br>