Closed nowox closed 7 years ago
That would be undefined behavior. To remove the prefix give your document a default namespace.
import myns
import pyxb.utils.domutils
pyxb.utils.domutils.BindingDOMSupport.SetDefaultNamespace(myns.Namespace)
Good to learn that. It would be nice to find it on the documentation.
Resolution would be that PyXB should reject the attempt to set an empty string prefix.
I would like to get rid of the
ns1
prefix so I set the prefix to an empty string. Instead of removing the prefix completely, pyxb adds empty prefixes: