[lxml-dev] lxml.objectify.deannotate refuses to clean nil nodes
Stefan Behnel
stefan_ml at behnel.de
Wed Jun 3 09:35:54 CEST 2009
Hi,
I do see your point that xsi:nil is still a bit different from xsi:type.
That's why I had my doubts in the first place.
jholg at gmx.de wrote:
> A compromise may be to add another keyword arg "nil" to deannotate() to
> allow for xsi:nil removal if needed (defaults to False, of course :)
I think that should be done, yes. A "nil=False" keyword would nicely solve
this. And disabling it by default makes sense for two reasons: backwards
compatibility and the fact that xsi:nil may be used in existing documents.
Is a plain "nil" enough or should we use "xsi_nil"?
Stefan
More information about the lxml-dev
mailing list