When generating the schema from my JAXB annotated classes, the annotation
@XmlElementWrapper(nillable=false) is not generated with the attribute
"minoccurs=0."
This appears to be related to the fact that my XmlElementWrapper is wrapping
XmlElementRefs:
@XmlElementWrapper(name = "wrapper", nillable = false)
@XmlElementRefs( {. . . })
The generated schema is as follows:
<xs:element name="wrapper">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element . . . />
. . .
</xs:choice>
</xs:complexType>
</xs:element>
However, when I use the same XmlElementWrapper annotation to wrap an
XmlElement, the generated schema does include the attribute "minoccurs=0."
Is this a bug, or is there another annotation or attribute that can
accomplish this?