title: XML Schema: how to have multiple identical elements?
body: <p>I'm having quite a hard time on constructing my 1st XML Schema. I need it to verify the correctness of an XML document that forms a questionnaire.<br>
  So here's the section in don't get:</p>
  
  <p>I changed the source. The 1st answer refers to this code:</p>
  
  <pre><code>&lt;root&gt;
      &lt;values&gt;
          &lt;value&gt;Lorem&lt;/value&gt;
          &lt;value&gt;ipsum&lt;/value&gt;
          &lt;value&gt;dolor&lt;/value&gt;
      &lt;/values&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now my actual goal is this:</p>
  
  <pre><code>&lt;requires&gt;
      &lt;require requires-id="2" type="included"&gt;
          &lt;values&gt;  
              &lt;value isRequired="true"&gt;Lorem&lt;/value&gt;
              &lt;value isRequired="false"&gt;Lorem&lt;/value&gt;
              &lt;value isRequired="false"&gt;Lorem&lt;/value&gt;
          &lt;/values&gt;
      &lt;/require&gt;
      &lt;require requires-id="5" type="excluded"&gt;
          &lt;values&gt;  
              &lt;value isRequired="true"&gt;Lorem&lt;/value&gt;
              &lt;value isRequired="false"&gt;Lorem&lt;/value&gt;
          &lt;/values&gt;
      &lt;/require&gt;
  &lt;/requires&gt;
  </code></pre>
  
  <p>Can anyone please help to make a proper Schema? I'm using <a href="https://msv.dev.java.net/" rel="nofollow">Sun Multi-Schema XML Validator (MSV)</a> to validate the document against the Schema.</p>
  
  <p>Thanks in advance,<br>
  Steff</p>