I am having problem to implement maxOccurs in my XML Schema: error I am getting is Repeating sequence type at line 17 has more than one child

My Schema:

xs:simpleType name="nameType">
      <xs:restriction base="string">
        <xs:minLength value="1" />
        <xs:maxLength value="20" />
      </xs:restriction>
    </xs:simpleType>

<xs:element name="information">
        <xs:complexType>
          <xs:sequence>
        <xs:element name="personal" maxOccurs="10">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="nameType" name="name"/>
              <xs:element  type="nameType" name="surname"/>
              <xs:element  type="nameType" name="age"/>
              <xs:element  type="nameType" name="postcode"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>

        <xs:element name="school" maxOccurs="10">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="nameType" name="maths"/>
              <xs:element  type="nameType" name="english"/>
              <xs:element  type="nameType" name="physics"/>

            </xs:sequence>
          </xs:complexType>
        </xs:element>



          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>




Could anybody help me to implement maxOccurs. Thank you in advance

Again, please DO NOT double (or triple) post in these forums. Remove this instance please. I have already answered one of these.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.