Hi -
I'm trying to annotate a class so that the resulting generated schema will
have a choice element that contains as sequence as one of the options. I'm
looking for something that will generate a schema like this:
<xs:schema xmlns:xs="
http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="hello">
<xs:complexType>
<xs:choice>
<xs:element name="latest" type="xs:boolean"/>
<xs:sequence>
<xs:element name="startingVersion" type="xs:int" minOccurs="0"/>
<xs:element name="numVersions" type="xs:int" minOccurs="0"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
Any ideas how this might be done?
--
View this message in context: http://www.nabble.com/Annotating-a-class-with-a-sequence-inside-a-choice-tp16447085p16447085.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.