I am having problem with maxOccurs in my code.. it is cauisng an error. Could anyone could aid me to avoid having error?

<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>

Please do NOT double post! Remove this one, please.

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.