JAXB 1 : generating simpleTypes classes

Sorry, I posted an uncompleted message.

Hello, I'm new to JAXB technology.

Since I'm working with j2sdk 1.4 I c'ant use JAXB 2, so I'm using JAXB 1.0.6.

When I call the xjc ant task, my java classes are generated... buy simple types do not generate any java class.

Let's say I have the following xsd:

<xs:complexType name="EXAMPLE">

<xs:sequence>

<xs:element name="market-type" type="po:market-type"/>

</xs:sequence>

</xs:complexType>

<xs:simpleType name="MARKET-TYPE">

<xs:restriction base ="xs:string">

<xs:enumeration value ="PRIM"/>

<xs:enumeration value ="SECOND"/>

</xs:restriction>

</xs:simpleType>

After xjc compilation I have a EXAMPLE Java class, but its element "market-type" is a String and not a MARKET-TYPE as I expected.

Is it normal? Can I customize the output in order to generate java classes for simpleTypes?

[1186 byte] By [El_Duendea] at [2007-11-27 7:01:54]
# 1
The base data type of the simpleType MARKET-TYPE is xsd:string.
dvohra09a at 2007-7-12 18:52:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...