XML Schema datatypes Miscellaneous
Other miscellaneous data types include Boolean, base64Binary, hexadecimal, floating point, double precision, anyURI, anyURI and NOTATION.
Boolean data type (Boolean Data Type)
true or false value of the Boolean data is used to specify.
Here is an example of a logical scheme declared:
Elements in the document should look like this:
Note: Boolean values are legitimate true, false, 1 (represented true) and 0 (false).
Binary data type (Binary Data Types)
Binary data types are used to express the data in binary form.
We can use two binary data types:
- base64Binary (Base64 encoded binary data)
- hexBinary (hex-encoded binary data)
Here is an example of a scheme in hexBinary declaration:
AnyURI data type (AnyURI Data Type)
anyURI data type is used to specify URI.
Here is an example of a scheme in anyURI declaration:
Elements in the document should look like this:
Note: If a URI contains spaces, replace them with 20%.
Miscellaneous Data Types
name | description |
---|---|
anyURI | |
base64Binary | |
boolean | |
double | |
float | |
hexBinary | |
NOTATION | |
QName |
Of miscellaneous data types defined (Restriction)
May define and miscellaneous data types used together:
- enumeration (a Boolean data type can not use this constraint *)
- length (a Boolean data type can not use this constraint)
- maxLength (a Boolean data type can not use this constraint)
- minLength (Boolean data type can not use this constraint)
- pattern
- whiteSpace
* Translator's Note: refers to the constraint constraint.