2.1.36.1.2 Primitive Scalar Constant Expressions
The following expression elements are defined as primitive scalar constant expressions:
String allows any sequence of UTF-8 characters.
Int allows content in the following form: [-] [0-9]+.
Float allows content in the following form: [0-9]+ ((.[0-9]+) | [E[+ | -][0-9]+]).
Decimal allows content in the following form: [0-9]+.[0-9]+.
Bool allows content in the following form: true | false.
DateTime allows content in the following form: yyyy-mm-ddThh:mm[:ss[.fffffff]].
DateTimeOffset allows content in the following form: yyyy-mm-ddThh:mm[:ss[.fffffff]]zzzzzz.
Guid allows content in the following form: dddddddd-dddd-dddd-dddd-dddddddddddd where each d represents [A-Fa-f0-9].
Binary allows content in the following form: [A-Fa-f0-9][A-Fa-f0-9]*.
The following is an example of primitive scalar constant expressions.
-
<String>text</String> <Int>1</Int> <Float>3.14159265</Float> <Decimal>9.8</Decimal> <Bool>true</Bool> <DateTime>2011-08-30T14:30:00.00</DateTime> <DateTimeOffset>2011-08-30T14:30:00.00-09:00</DateTimeOffset> <Guid>707043F1-E7DD-475C-9928-71DA38EA7D57</Guid> <Binary>6E67616F766169732E65</Binary>