<xs:simpleType name="tBitMask"> <xs:restriction base="xs:string"> <xs:pattern value="[0-1]*"/> </xs:restriction> </xs:simpleType>