title: Representing a object list in XSD
body: <p>I need to declare a list in my xsd file . Not sure what changes do I need to make. I tried using simple type but the required type is not getting generated.</p>
  
  <p><strong>I need my pojo to have the datatype as -</strong></p>
  
  <pre><code>  @XmlElement(name = "Journeys", required = true)
          protected List&lt;LoyaltyJourneyIdentifier&gt; journeys = new ArrayList&lt;LoyaltyJourneyIdentifier&gt;();
  </code></pre>
  
  <p><strong>My current xsd</strong></p>
  
  <pre><code>                    &lt;xs:complexType name="AccountLoyaltyDetail"&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name="OperatingCompany" type="ns:OperatingCompanyType"
                      minOccurs="0" /&gt;
                  &lt;xs:element name="Journeys" type="ns:LoyaltyJourneyIdentifier" /&gt;
                  &lt;xs:element name="Segments" type="ns:LoyaltySegmentIdentifier" /&gt;
              &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="LoyaltyJourneyIdentifier"&gt;
              &lt;xs:sequence&gt;
                    &lt;xs:element name="JourneyIdentifierId" type="xs:string" maxOccurs="unbounded"&gt;
                          &lt;xs:annotation&gt;
                                &lt;xs:documentation&gt;Free form text to be echoed back in the reply.
                                      Used to match requests and replies.&lt;/xs:documentation&gt;
                          &lt;/xs:annotation&gt;
                    &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
  &lt;/xs:complexType
  </code></pre>
  
  <p>>
  <strong>currently the pojo is generated as -</strong> </p>
  
  <pre><code>@XmlElement(name = "Journeys", required = true)
      protected LoyaltyJourneyIdentifier journeys;
  </code></pre>
  
  <p>Please let me know what changes do I need to make </p>