Mega Code Archive

 
Categories / XML / XML Schema
 

Simple type for temperature

<?xml version="1.0" ?>  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">     <xsd:simpleType name="temperatureUnits">         <xsd:restriction base="xsd:string">             <xsd:enumeration value="celsius"/>              <xsd:enumeration value="farenheit"/>             <xsd:enumeration value="kelvin" />           </xsd:restriction>     </xsd:simpleType> </xsd:schema>