Just eliminating xs:sequence
, xs:choice
, or xs:all
, is not an option:
<xs:complexType name="cType">
<xs:element name="e"/>
</xs:complexType>
is not valid.
See XML Representation of Complex Type Definitions where complexType
's content model is defined as follows:
(annotation?, (simpleContent | complexContent | ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?))))
There is no provision for element
being a direct child of complexType
.