Simple data types

The following are general requirements for the content and formatting of simple data types in the XML spec.

xs:string

Keep the following best practices in mind when you use the xs:string data type:

  • Always trim the string to remove leading and trailing white space.
  • If the string is presented to end users, such as with party names, office titles, or proper names, convert the data to Title Case when possible to aid readability.

xs:dateTime

When you use the xs:dateTime data type, enter it in ISO-8601 format.

xs:partialDate

The xs: partialDate is a union that allows you to add dates to the feed in different formats:

  • Specific date, such as YYYY-MM-DD
  • Period of one month, such as YYYY-MM
  • Period of one year, such as YYYY

Enter the partialDate in the ISO-8601 format.

xs:boolean

When you use the xs:boolean data type, enter it with a value of either true or false (case-sensitive).

xs:language

When you use the xs:language data type, enter it as a two-character, lower-case value that corresponds to the ISO 639 standard.