If you delete the filler elements from within the sequence, the bindings module can be imported. sed -i -e /filler/d xml-mgmt.xsd
No. The schema element at that point has minOccurs=0 maxOccurs=0 which means it doesn't exist. PyXB seems to remove it, which means the remaining reference to it while building the automaton fails. This is now filed as issue #79. I don't know when it will be worked.
TimePositionType is a complex type with simple content, meaning that it is a basic value that's annotated with attributes. Because you need to access the attributes like calendarEraName from the instance, you have to use the value() method on the instance to access the basic value. Example schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="URN:test" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="datePrepared" type="gml:TimePositionType"/>...
No. I've never encountered a situation where I've had to do it.
Not a simple way, no. You could use the class _ElementMap and _AttributeMap properties to extract elements and attributes from an instance and put them into a dictionary.
Identified and resolved as github issue #78.
Update your StackOverflow post with the schema description for an element that uses those types and I'll answer it there.
Some of the complexity is required given PyXB's primary goal of supporting XML validation,...