String with only yes or no allowed |
<xs:simpleType name="YesNo"> <xs:annotation> <xs:documentation>String with only yes or no allowed</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:enumeration value="yes"/> <xs:enumeration value="no"/> </xs:restriction> </xs:simpleType> |