Hi, I'd like to contribute to xmlbeans by adding the posibility of indicate the Enum constants names for an enumeration.
Suppose we have this definition: <xs:simpleType name="AgeType"> <xs:restriction base="xs:string"> <xs:enumeration value="ADT"/> <xs:enumeration value="CHD"/> <xs:enumeration value="INF"/> </xs:restriction> </xs:simpleType> And suppose I want to name the enum constants generated by XmlBeans as "Adult", "Child" and "Infant" In JAXB that's done with annotations: <xs:simpleType name="AgeType"> <xs:restriction base="xs:string"> <xs:enumeration value="ADT"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumMember name="Adult"/> </xs:appinfo> </xs:annotation> </xs:enumeration> <xs:enumeration value="CHD"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumMember name="Child"/> </xs:appinfo> </xs:annotation> </xs:enumeration> <xs:enumeration value="INF"> <xs:annotation> <xs:appinfo> <jaxb:typesafeEnumMember name="Infant"/> </xs:appinfo> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> I think using xs:annotations is a good idea. Could anyone point me the Classes I should change and if is it possible also give me any advice? Thanks, Kind Regards, Diego.