Data Types

XML data types are used to help define the output of the data returned by the PARFAIT APIs.

Also, where possible, the data types as defined by the data source are used.

Data Type Sample Description
anyURI http://espn.go.com/ The anyURI data type is used to specify a URI.
datetime Sat, 15 Nov 2014 06:24:15 PST The dateTime data type is used to specify a date and a time.
decimal 27.45 The decimal data type is used to specify a numeric value.
duration PT1H The duration data type is used to specify a time interval.
email webmaster@espn.go.com The email data type is used to specify an email address.
integer 23 or -12 The integer data type is used to specify a numeric value without a fractional component.
language en-us A string that contains a valid language id
nonNegativeInteger 15 An integer containing only non-negative values (0,1,2,..)
string ESPN logo The string data type can contain characters, line feeds, carriage returns, and tab characters.
token current The token data type is derived from the String data type. The token data type also contains characters, but the XML processor will remove line feeds, carriage returns, tabs, leading and trailing spaces, and multiple spaces.

The data definition descriptions are courtesy of w3schools.com