xs:boolean

The data type xs:boolean supports the mathematical concept of binary-valued logic: true or false.

Lexical form

The lexical form of the data type xs:boolean can be one of the literal values true, false, 1, or 0.

Constructor

Use the following syntax to construct an instance of xs:boolean:

Read syntax diagramSkip visual syntax diagramxs:boolean( value)
value
The value that is to be constructed. If this value is an empty sequence, the empty sequence is returned.

If value is illegal for the target data type, the constructor function returns an error.