<br>The nil node &lt;Fubar/&gt; 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&#39;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(&#39;&lt;root&gt;&lt;Bar/&gt;&lt;/root&gt;&#39;)<br>x.Foo = &#39;&#39;<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>&lt;root&gt;&lt;Bar/&gt;&lt;Foo&gt;&lt;/Foo&gt;&lt;Fubar xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xsi:nil=&quot;true&quot;/&gt;&lt;/root&gt;<br>


</div><br>