When no maxOccurs
is specified the default value is 1
. This is why the property is not generated as a List
.
To get a List
you need to specify the maxOccurs
attribute on the element definition with a value of at least 2
:
<xs:element name="user" type="abc:userType" maxOccurs="2"/>
or unbounded
:
<xs:element name="user" type="abc:userType" maxOccurs="unbounded"/>