Hi Adam, the XML schema you supplied below has got a small problem, with namespaces. Just change
... <xsd:restriction base="xsd:string"> and you should be fine. Regards Werner Adam Edgar wrote: > I have created an enumerated type with the following snippet of code but > I do not get a java file generated for it. Are enumerated strings > supported in 1.2? > > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://somedomain.com/data" > xmlns="http://somedomain.com/data" > > <xsd:simpleType name="ErrorCodes"> > <xsd:restriction base="string"> > <xsd:enumeration value="OK"/> > <xsd:enumeration value="UNABLE_TO_RUN"/> > <xsd:enumeration value="UNKNOWN_SYSTEM_PROBLEM"/> > <xsd:enumeration value="UNKNOWN_DATABASE_PROBLEM"/> > <xsd:enumeration value="TIMEOUT"/> > <xsd:enumeration value="BAD_PARAM"/> > <xsd:enumeration value="PARTIAL_RETURN"/> > <xsd:enumeration value="NO_ADDRESS_GIVEN"/> > </xsd:restriction> > </xsd:simpleType> > </xsd:schema> > > All the complexTypes with sequences work fine. I just don't get an > enumerated class generated. > > ASE > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

