Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

The simple type may be defined globally, as a child of an attribute declaration, or within an element content model

<xsd:simpleType name="deptType">   <xsd:restriction base="xsd:string">    <xsd:enumeration value="management"/>    <xsd:enumeration value="programming"/>    <xsd:enumeration value="design"/>    <xsd:enumeration value="training"/>   </xsd:restriction> </xsd:simpleType>