XJC does not generate enum inside xs:union
问题 I have several XSD files containing structures like the following: <xs:complexType name="SomeThing" abstract="false"> <xs:sequence> <xs:element name="id" type="schema2:SomeIdTypeClass" minOccurs="1" maxOccurs="1"/> <xs:element name="myType" type="schema1:MyType" minOccurs="1" maxOccurs="1"/> </xs:sequence> </xs:complexType> <xs:simpleType name="MyType"> <xs:union> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="APPLE"/> <xs:enumeration value="ORANGE"/> <xs:enumeration