Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Fixed Order

<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"   targetNamespace="http://www.rntsoft.com" xmlns="http://www.rntsoft.com"   elementFormDefault="qualified"> <xs:element name = "Count">    <xs:complexType>       <xs:sequence>          <xs:element name = "One" type = "xs:string" />          <xs:element name = "Two" type = "xs:string" />          <xs:element name = "Three" type = "xs:string" />       </xs:sequence>    </xs:complexType> </xs:element> </xs:schema> So the following example would be a conforming structure: <Count>    <One></One>    <Two></Two>    <Three></Three> </Count> But this would not: <Count>    <Two></Two>    <One></One> </Count>