How do you nest complexType elements in an xsd?
Try this for your XSD:
<?xml version = "1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="people" type="people"/>
<xs:complexType name="people">
<xs:sequence>
<xs:element name="person" type="person" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="person">
<xs:sequence>
<xs:element name="firstname" type="xs:string" maxOccurs="1" minOccurs="1"/>
<xs:element name="lastname" type="xs:string" maxOccurs="1" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Add maxOccurs="unbounded"
to the element named "person". It is a sequence of one or more person elements.
Note: write maxOccurs in lowerCamelCase not in lower case