May 28, 2021 XML Schema
This section describes some of the other data types in XML Schema.
Other miscellaneous data types include Boolean, base64Binary, hetegam, floating-point, double-precision, anyURI, anyURI, and NOTATION.
Boolean data is used to specify true or false values.
Here's an example of a logical declaration in a scheme:
The elements in the document should look something like this:
Note: The legal Boolean values are true, false, 1 (true), and 0 (false).
Binary data types are used to express data in binary form.
We can use two binary data types:
Here's an example of a hexBinary declaration in a scheme:
AnyURI data types are used to specify URIs.
Here's an example of anyURI declaration in a scheme:
The elements in the document should look something like this:
Note: If a URI contains spaces, replace them with %20.
Name | Describe |
---|---|
anyURI | |
base64Binary | |
boolean | |
double | |
float | |
hexBinary | |
NOTATION | |
Qname |
Qualifications that can be used with miscellaneous data types:
Constraint refers to constraint.