2.11.1.6 WebDAV Property Data Types
WebDAV property data types are specified for a property by using the dt attribute from the namespace "urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/".
The WebDAV property types are listed in the following table. Unless their formats are specified elsewhere, all property type formats are in Augmented Backus-Naur Form (ABNF) notation, as specified in [RFC5234].
Server property type name |
WebDAV property type name |
Description |
Format |
---|---|---|---|
PtypBinary |
i1 |
The Unicode value of the element is interpreted as an optionally signed 1-byte, 8-bit decimal integer. |
As a byte, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="i1">3</element> |
PtypInteger16 |
i2 |
The Unicode value of the element is interpreted as an optionally signed 2-byte, 16-bit decimal integer. |
As a short, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="i2">-255</element> |
PtypInteger32 |
int |
The Unicode value of the element is interpreted as an optionally signed 4-byte, 32-bit decimal integer. |
As an int, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="int">-53496</element> |
PtypInteger64 |
i8 |
The Unicode value of the element is interpreted as an optionally signed 8-byte, 64-bit decimal integer. |
As a long, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="i8">-32415</element> |
PtypBinary |
ui1 |
The Unicode value of the element is interpreted as an unsigned 1-byte, 8-bit decimal integer. |
As an unsignedByte, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="ui1">255</element> |
PtypInteger16 |
ui2 |
The Unicode value of the element is interpreted as an unsigned 2-byte, 16-bit decimal integer. |
As an unsignedShort, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="ui2">2296</element> |
PtypInteger32 |
ui4 |
The Unicode value of the element is interpreted as an unsigned 4-byte, 32-bit decimal integer. |
As an unsignedInt, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="ui4">32768</element> |
PtypInteger64 |
ui8 |
The Unicode value of the element is interpreted as an unsigned 8-byte, 64-bit decimal integer. |
As an unsignedLong, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="ui8">-189</element> |
PtypFloating64 |
float |
The Unicode value of the element is interpreted as a single precision floating point number. |
float-val = (["+"] / "-") [1*DIGIT] ["." 1*DIGIT] ["d" / "D" / "e" / "E" (["+"] / "-") 1*DIGIT] Example: <element... d:dt="float">9.9</element> |
PtypFloating32 |
r4 |
The Unicode value of the element is interpreted as a 4-byte single precision floating point number. |
r4-val = (["+"] / "-") [1*DIGIT] ["." 1*DIGIT] ["d" / "D" / "e" / "E" (["+"] / "-") 1*DIGIT] Example: <element... d:dt="r4">9.9</element> |
PtypFloating64 |
r8 |
The Unicode value of the element is interpreted as an 8-byte double precision floating point number. |
r8-val = (["+"] / "-") [1*DIGIT] ["." 1*DIGIT] ["d" / "D" / "e" / "E" (["+"] / "-") 1*DIGIT] Example: <element... d:dt="r8">.333333333</element> |
PtypBoolean |
boolean |
The Unicode value of the element is interpreted as a Boolean value either "1" (TRUE) or "0" (FALSE). |
As a boolean, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="boolean">1</element> |
PtypString |
string |
The Unicode value of the element is interpreted as a sequence of Unicode characters. |
As a string, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="string">Description</element> |
PtypString |
char |
The Unicode value of the element is interpreted as a single Unicode character. The character data type maps to a string and can be used for any sequence of Unicode characters. |
char-val = 1VCHAR Example: <element... d:dt="char">D</element> |
PtypCurrency |
fixed.14.4 |
The Unicode value of the element is interpreted as an optionally signed floating point number with no more than 14 digits to the left of the decimal point, and no more than 4 digits to the right of the decimal point. This data type is normally used to represent currency values. |
fixed144-val = 0*14DIGIT "." 0*4 DIGIT Example: <element... d:dt="fixed.14.4">00000000000012.9500</element> |
PtypString |
number |
The Unicode value of the element is interpreted as a number, limited by the operating system limits, which can optionally contain a leading sign, fractional digits, and an exponent. |
As a string, as specified in [XMLSCHEMA2/2] Example: <element... d:dt="number">-123.456E+10</element> |
PtypTime |
dateTime |
The Unicode value of the element is interpreted as a date and time value expressed in the format specified in [ISO-8601] with no time zone specified. |
As specified in [ISO-8601] Example: <element... d:dt="datetime">2008-09-19T18:53:47.060</element> |
PtypTime |
dateTime.tz |
The Unicode value of the element is interpreted as a date and time value expressed in the format specified in [ISO-8601] with an optional time zone identifier. |
As specified in [ISO-8601] Example: <element... d:dt="datetime.tz">2008-09-19T18:53:47.060Z</element> <element... d:dt="datetime.tz">2008-09-19T18:53:47.060-0700</element> |
PtypTime |
dateTime.rfc1123 |
The Unicode value of the element is interpreted as a date and time value expressed in the format specified in [RFC1123]. |
As specified in [RFC1123] Example: <element... d:dt="datetime.rfc1123">Mon, 15 Feb 1999 13:05:29-0700</element> |
PtypTime |
Date |
The Unicode value of the element is interpreted as a date value that is expressed in the format specified in [ISO-8601] with no time or time zone specified. |
As specified in [ISO-8601] Example: <element... d:dt="date">2008-09-18</element> |
PtypTime |
time |
The Unicode value of the element is interpreted as a time value expressed in the format specified in [ISO-8601] with no date or time zone specified. |
As specified in [ISO-8601] Example: <element... d:dt="time">19T18:53:47.060</element> |
PtypTime |
time.tz |
The Unicode value of the element is interpreted as a time value expressed in the format specified in [ISO-8601] with an optional time zone identifier. |
As specified in [ISO-8601] Example: <element... d:dt="time.tz">19T18:53:47.060Z</element> <element... d:dt="time.tz">19T18:53:47.060-0700</element> |
PtypString |
uri |
The Unicode value of the element is interpreted as a Uniform Resource Identifier (URI) as specified in [RFC3986]. |
As specified in [RFC3986] Example: <element... d:dt="uri">http://www.example.com/</element> |
PtypGuid |
uuid |
The Unicode value of the element is interpreted as a universally unique identifier (UUID) as specified in [RFC4122]. |
As specified in [RFC4122] Example: <element... d:dt="uuid">55B329F4-EF8A-4fac-A47C-C81213DB3061</element> |
PtypBinary |
bin.hex |
The Unicode value of the element is interpreted as a BLOB encoded in hexadecimal digits. |
As specified in [XMLSCHEMA2/2] Example: <element... d:dt="bin.hex">1f8b9d</element> |
PtypBinary |
bin.base64 |
The Unicode value of the element is interpreted as a BLOB encoded in base64 encoding as specified in [RFC2045]. |
As specified in [RFC2045] Example: <element... d:dt="bin.base64">jfsSUsdjsdsUSDASjsdsusaqiq</element> |