jaxb2 simplify plugin for xs:choice having same types
问题 I'm trying to use jaxb2 basics simplify plugin for my schema to JAXB conversion. It works fine for the complex types like below. Each element is defined inside the xs:choice has different types ( type1 and type2 ). sample.xsd (complex choice type with different type) <xs:complexType name="doclist"> <xs:sequence> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:appinfo> <simplify:as-element-property /> </xs:appinfo> </xs:annotation> <xs:element name="document1" type="type1"