Describe the bug
when xs:group tag include an array , it will generate wrong
the xs:group tag example:
<xs:group name="BaseBookingTravelerInfoA">
<xs:sequence>
<xs:element ref="BookingTravelerName"/>
<xs:element ref="DeliveryInfo" minOccurs="0" maxOccurs="999"/>
<xs:element ref="PhoneNumber" minOccurs="0" maxOccurs="999"/>
<xs:element ref="Email" minOccurs="0" maxOccurs="999"/>
<xs:element ref="LoyaltyCard" minOccurs="0" maxOccurs="999"/>
<xs:element ref="DiscountCard" minOccurs="0" maxOccurs="9"/>
</xs:sequence>
</xs:group>

I copied the contents of the xs: group tag to the place referenced by xs: group, and then it can be generated normally.