provide support for generating and parsing xml known to be invalid
Brought to you by:
pabigot
Not the same as #19. This is restricted to the XML representation, where we can use _ _ childrenFromDOM to generate the element content (toxml) and the element name to determine the correct element use (CreateFromDocument) disregarding content model constraints.
Fixed in [1960].
The restricted case was simple enough. Use pyxb.RequireValidWhenGenerating(False) to allow generation of incomplete documents. Use pyxb.RequireValidWhenParsing(False) to allow such documents to be loaded back in as binding instances. Put everything back to True as soon as possible.