I have below complextype
<xsd:complexType name="cidType">
<xsd:choice>
<xsd:sequence>
<xsd:element name="a" type="Type_A"></xsd:element>
<xsd:element name="b" type="Type_B"></xsd:element>
<xsd:element name="c" type="Type_C"></xsd:element>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="b" type="Type_B"></xsd:element>
<xsd:element name="c" type="Type_C"></xsd:element>
</xsd:sequence>
<xsd:element name="c" type="Type_C"></xsd:element>
</xsd:choice>
</xsd:complexType>
Using xjc utility when I generated a class for this, it generated a property
as follows in the class for this type:-
/*
* You are getting this "catch-all" property because of the following
reason:
* The field name "b" is used by two different parts of a schema.
*/
List<JAXBElement<?>> cid;
What is the solution to this problem? xjc suggests applying property
customization to one of the declarations to change their names.
Since it is an industry standard schema I don't have the liberty to change
anything. What is the possible solution?
--
View this message in context: http://www.nabble.com/xsd%3Achoice-elements-not-converted-properly-tp24684943p24684943.html
Sent from the java.net - jaxb dev mailing list archive at Nabble.com.