A schema defines an extension point with " <any namespace="##other" processContents="lax" maxOccurs="unbounded"/>".
I create a document containing such an extension with CreateFromDocument(xml). This document cannot be toxml()'ed. The toxml() call fails with
AttributeError: 'Document' object has no attribute 'removeChild'
In reality this is happening with the SAML2 Protocol schema but I have created a simplified example to easily reproduce the problem.
The example contains 5 files: