I'm trying to create a required elemnts which has diffent sub elements.Example XMl file like this:\[code\]<datamodel> <info name="user"> <userRight>add user</userRight> </info> <info name="admin"> <role>manager</role> </info></datamodel>\[/code\]I currently have the following xml schema.\[code\]<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="datamodel"> <xs:complexType> <xs:sequence> <xs:element name="info" maxOccurs="unbounded" minOccurs="0" > <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="userRight" minOccurs="0"/> <xs:element type="xs:string" name="role" minOccurs="0"/> </xs:sequence> <xs:attribute type="xs:string" name="name" use="optional" fixed="user"/> </xs:complexType> </xs:element> <xs:element name="info" maxOccurs="unbounded" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="userRight" minOccurs="0"/> <xs:element type="xs:string" name="role" minOccurs="0"/> </xs:sequence> <xs:attribute type="xs:string" name="name" use="optional" fixed="admin"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>\[/code\]However given XML schema will not work with example XML file which I have.How can I modify the schema for validate such a XML?