title: Element 'sequence' is invalid, misplaced, or occurs too often
body: <p>I have an error on validating an XML file with the schema.</p>
  
  <blockquote>
    <p>s4s-elt-invalid-content.1: The content of '#AnonType_userusersroot' is
    invalid.  Element 'sequence' is invalid, misplaced, or occurs too
    often. [25]</p>
  </blockquote>
  
  <p><strong>My XML file:</strong></p>
  
  <pre><code> &lt;root&gt;  
      &lt;users&gt;   
          &lt;user code="10"&gt;
              &lt;fullName&gt;sandesh poudel&lt;/fullName&gt;
              &lt;sex&gt;male&lt;/sex&gt;
              &lt;age&gt;19&lt;/age&gt;
              &lt;phoneNo&gt;239239&lt;/phoneNo&gt;
              &lt;address&gt;Rasinkatu 13&lt;/address&gt; 
              &lt;title&gt;owner&lt;/title&gt; 
          &lt;/user&gt;
          &lt;user code ="20"&gt;
              &lt;fullName&gt;Surendra pandey&lt;/fullName&gt;
              &lt;sex&gt;male&lt;/sex&gt;
              &lt;age&gt;22&lt;/age&gt;
              &lt;phoneNo&gt;3432&lt;/phoneNo&gt;
              &lt;address&gt;kilo 13&lt;/address&gt;
              &lt;title&gt;manager&lt;/title&gt; 
          &lt;/user&gt;
          &lt;user code ="40"&gt;
              &lt;fullName&gt;sangam poudel&lt;/fullName&gt;
              &lt;sex&gt;male&lt;/sex&gt;
              &lt;age&gt;22&lt;/age&gt;
              &lt;phoneNo&gt;239239&lt;/phoneNo&gt;
              &lt;address&gt;sydney&lt;/address&gt; 
              &lt;title&gt;Programmer&lt;/title&gt; 
          &lt;/user&gt;
      &lt;/users&gt;&gt; 
  &lt;/root&gt;
  </code></pre>
  
  <p><strong>My XML Schema file:</strong></p>
  
  <pre><code>&lt;xs:schema    xmlns:xs="http://www.w3.org/2001/XMLSchema"
                targetNamespace="http://www.w3schools.com"
                xmlns="http://www.w3schools.com"
                elementFormDefault="qualified"&gt;
      &lt;xs:element name="root"&gt;
          &lt;xs:complexType mixed="true"&gt;
              &lt;xs:sequence maxOccurs="unbounded"&gt;
                  &lt;xs:element name="users"&gt;
                      &lt;xs:complexType&gt;
                          &lt;xs:sequence maxOccurs="unbounded"&gt;
  
                              &lt;xs:element name="user"&gt;
  
  
                                  &lt;xs:complexType mixed="true"&gt;
                                      &lt;xs:attribute name="code" type="xs:string"/&gt;
                                      &lt;xs:sequence&gt;
  
                                      &lt;xs:element name="fullName" type="xs:string"/&gt; 
                                      &lt;xs:element name="sex" type="xs:string"/&gt; 
                                      &lt;xs:element name="age" type="xs:string"/&gt; 
                                      &lt;xs:element name="phoneNo" type="xs:string"/&gt;
                                      &lt;xs:element name="address" type="xs:string"/&gt; 
                                      &lt;xs:element name ="title" type="xs:string"/&gt;
                                      &lt;/xs:sequence&gt;
                                  &lt;/xs:complexType&gt;
  
                              &lt;/xs:element&gt; &lt;!-- name --&gt;
  
                          &lt;/xs:sequence&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>