[lxml-dev] objectify.deannotate: call to etree.cleanup_namespaces in 2.1beta
Stefan Behnel
stefan_ml at behnel.de
Tue Jun 24 08:10:12 CEST 2008
Hi,
Holger Joukl wrote:
> I have a usecase where I need to deannotate an objectified tree
> and then manually set py:pytype or xsi:type attributes.
>
> However, this seems to be getting difficult with 2.1beta as deannotate
> wipes out all nsmap information with its call to cleanup_namespaces(),
> and I cannot set a namespaced
>
> attribute through <elt>.set(...)
>
> could we make the call to cleanup_namespaces optional (defaults
> to True) in deannotate()?
I wasn't entirely sure if it was a good idea when I added it. I guess it's
best to keep it out or make it optional (default False).
Stefan
More information about the lxml-dev
mailing list