Boolean data type is used to specify a true or false value.
Boolean Data Type
The boolean data type (<xs:boolean>) is used to represent boolean values (true or false).
Let's see an example:
<xs:attribute name="disabled" type="xs:boolean"/>and an element in your XML document look like this:
<price disabled="true">999</price>Restrictions on Boolean Data Type
Restrictions that can be used with Boolean data type:
patternwhiteSpace
See XSD Restrictions chapter to learn more.