need way to require xsi:type for specific elements
Brought to you by:
pabigot
Some schemas are used in a way where elements of type xs:anyType, which is not abstract, are expected to appear in documents with content that is arbitrarily a simple or complex type, identified with an xsi:type attribute. PyXB only supports automatic addition of xsi:type for elements with an abstract type, or for all elements in a document. There needs to be a way to indicate that it must be added for a specific element based on xs:anyType.
As written, this is not fixed. However, PyXB has been updated so that any element with a declared type of xsd:anyType will automatically have xsi:type added if the content of that element is more refined. Which meets the specific need.
Fixed before 45cee77 and in "next".