Data type

 

The following type is used for the MML data type.

string

Character string

integer

Integer

decimal

Decimal

boolean

True/false value. Use the true or false option value.

date

Date Form: CCYY-MM-DD
Example: 1999-09-01

time

Time Form: hh:mm:ss
Example: 12:54:30

dateTime

Date and time Form: CCYY-MM-DDThh:mm:ss
Example: 1999-09-01T12:54:30

timePeriod

Form: PnYnMnDTnHnMnS
Example: P65Y (65 years old)
or
Form: PnW
Example: P12W (12 weeks after birth)

The format of the date, time, dateTime, and timePeriod should be specification of ISO 8601 [7], especially the Complete representation format. In addition, the format of the date, time, and dateTime should be the Extended format. The format of the timePeriod should be the Basic format. The range that can be omitted varies depending on the individual element. Refer to the element explanation for the format of individual elements and attributes.

In the future, if the specification of XML Schema is recommended by W3C, the XML Schema-Datatypes will be specified for the MML data type.