--- type: "datatype" title: "code" datatype: "code" --- # code - [Datatypes](/datatypes) - [Definitions](/datatypes-definitions#code) - [Examples](/datatypes-examples#code) - [Mappings](/datatypes-mappings#code) - [Profiles](/datatypes-profiles#code) ## Primitive Details - **Definition**: A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - **XML Schema/Base**: `xs:token` - **JSON Type**: `string` - **Regex**: `[^\s]+( [^\s]+)*`