<xs:simpleType name="booleanType" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:restriction base="xs:string"> <xs:length value="1" /> <xs:enumeration value="N" /> <xs:enumeration value="Y" /> <xs:enumeration value="" /> </xs:restriction> </xs:simpleType>