I agree with your analysis. Better yet, define your schema as:
<xsd:element name="a">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="b" type="bType" maxOccurs="unbounded" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
To get rid of AType.B altogether.
regards,
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net