Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

Enumeration limits a value space to a specific set of values - if a value isnt specified in the set in the schema, it isnt vali

<?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:simpleType name="Sizes">     <xs:restriction base="xs:string">       <xs:enumeration value="S" />       <xs:enumeration value="M" />       <xs:enumeration value="L" />       <xs:enumeration value="XL" />     </xs:restriction>   </xs:simpleType> </xs:schema>