title: XSD: What's the difference between these two?
body: <p>In the first one, I put the minOccurs and maxOccurs in the <code>sequence</code> element:</p>
  
  <pre><code>&lt;xs:element name="Prerequisites" minOccurs="0" maxOccurs="1"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence minOccurs="0" maxOccurs="unbounded"&gt;
        &lt;xs:element name="Prerequisite" type="PrerequisiteType"/&gt;              
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>In the second one, I put it in the contained <code>element</code> element:</p>
  
  <pre><code>  &lt;xs:element name="Prerequisites" minOccurs="0" maxOccurs="1"&gt;
        &lt;xs:complexType&gt;
          &lt;xs:sequence&gt;
            &lt;xs:element name="Prerequisite" type="PrerequisiteType" minOccurs="0" maxOccurs="unbounded"/&gt;              
          &lt;/xs:sequence&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  </code></pre>