<?XML version= "1.0" encoding= "UTF-8"?><Xs:schemaXmlns:xs= "Http://www.w3.org/2001/XMLSchema"elementFormDefault= "qualified"attributeFormDefault= "unqualified"> <!--Order Indicator - <!--All indicator: child elements can appear in any order, and each child element must appear only once - <xs:elementname= "Person"> <Xs:complextype> <Xs:all> <xs:elementname= "FirstName"type= "Xs:string"/> <xs:elementname= "LastName"type= "Xs:string"/> </Xs:all> </Xs:complextype> </xs:element> <!--the appearance of the choice indicator element - <xs:elementname= "Person"> <Xs:complextype> <Xs:choice> <xs:elementname= "Employee"type= "Xs:string"/> <xs:elementname= "Member"type= "Xs:string"/> </Xs:choice> </Xs:complextype> </xs:element> <!--sequence indicator child elements must appear in a specific order - <xs:elementname= "Person"> <Xs:complextype> <xs:sequence> <xs:elementname= "FirstName"type= "Xs:string"/> <xs:elementname= "LastName"type= "Xs:string"/> </xs:sequence> </Xs:complextype> </xs:element><!--Occurrence Indicator - <!--maxoccurs indicator Specifies how often an element appears - <xs:elementname= "Person"> <Xs:complextype> <xs:sequence> <xs:elementname= "Full_name"type= "Xs:string"maxOccurs= "unbounded"/> <xs:elementname= "Child_name"type= "Xs:string"maxOccurs= "Ten"minOccurs= "1"/> </xs:sequence> </Xs:complextype> </xs:element><!--Group Indicator - <!--You must define an all, choice, or sequence element within the group declaration. The following example defines a group named "Persongroup", which defines a set of element definitions that must occur in an exact order and can be referenced in another definition . - <Xs:groupname= "Persongroup"> <xs:sequence> <xs:elementname= "FirstName"type= "Xs:string"/> <xs:elementname= "LastName"type= "Xs:string"/> <xs:elementname= "Birthday"type= "Xs:date"/> </xs:sequence> </Xs:group> <xs:elementname= "Person"type= "Persongroup" /> <Xs:complextypename= "Personinfo"> <xs:sequence> <Xs:groupref= "Persongroup"/> <xs:elementname= "Country"type= "Xs:string"/> </xs:sequence> </Xs:complextype></Xs:schema>
Schema learning two--indicators