With the second case (SiteSet not siteSet), schemagen actually duplicates the elements like this:
<xs:complexType name="siteSet">
<xs:sequence>
<xs:element name="Sites" type="site" nillable="true" maxOccurs="unbounded" minOccurs="0"/>
<xs:element name="sites" type="site" nillable="true" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
This would seem to me to be a bug ?
[Message sent by forum member 'richliv' (richliv)]
http://forums.java.net/jive/thread.jspa?messageID=240878