How can I use maxOccurs correctly in my code ?? I am getting error of repeating child. Thank you in advance
<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>