xsd:boolean
The type xsd:boolean
represents logical yes/no values. The valid values for xsd:boolean
are true
, false
, 0
, and 1
. Values that are capitalized (e.g. TRUE
) or abbreviated (e.g. T
) are not valid.
Simple Type Information
Namespace: http://www.w3.org/2001/XMLSchema
Schema Document: builtintypes.xsd
Content
- Based on xsd:anyAtomicType
- White Space: collapse
Examples
Valid values | Comment |
---|---|
true | |
false | |
0 | false |
1 | true |
Invalid values | Comment |
TRUE | values are case sensitive |
T | the word "true" must be spelled out |
an empty value is not valid, unless xsi:nil is used |