---
title: "XML Schema datatypes"
source: https://dev.pageseeder.com/psml/datatypes/xml_schema_datatypes.html
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~592
---

# XML Schema datatypes

Numerous attribute values have XML schema types – these are summarized here for convenience.

## `xs:boolean`

A boolean value can only be `true` or `false`.

> **Note:** PageSeeder only supports the canonical boolean values true and false – it does not support literal values 1 or 0.

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.2.2 boolean](http://www.w3.org/TR/xmlschema-2#boolean).

## `xs:dateTime`

A date and time following ISO8601 date and time representation in the form:

```text

'-'? YYYY '-' MM '-' DD 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?,
```

For example:

```text

2015-07-01T13:21:14+10:00
```

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.2.7 dateTime](http://www.w3.org/TR/xmlschema-2#dateTime).

## `xs:integer`

A 32-bit two’s complement integer value between -2<sup>31</sup> (- 2 147 483 648) and 2<sup>31</sup> - 1 (2 147 483 647).

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.3.13 integer](http://www.w3.org/TR/xmlschema-2#integer).

## `xs:long`

A 64-bit two’s complement integer value between -2<sup>63</sup> and 2<sup>63</sup> - 1.

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.3.16 long](http://www.w3.org/TR/xmlschema-2#long).

## `xs:NCName`

NCName or “Non-colonized” name is a more restrictive type than `xs:string` that is used as a base for names and identifiers. It starts with a letter or underscore and can be followed by a letter, digit, ‘.’, ‘-’, or ‘\_’.

```bnf

NCName     ::= (Letter | '_') (NCNameChar)*
NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender
```

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.3.7 NCName](http://www.w3.org/TR/xmlschema-2#NCName).

## `xs:positiveInteger`

An integer with a minimum value of **1**.

For a complete definition, refer to [XML Schema Part 2: Datatypes – 3.3.25 positiveInteger](http://www.w3.org/TR/xmlschema-2#positiveInteger).

## `xs:string`

An XML character string where every character has a corresponding Universal Character Code point. String can be further constrained by length or to match a regular expression pattern. Most attributes in PSML have a maximum length.

For a complete definition refer to [XML Schema Part 2: Datatypes – 3.2.1 string](http://www.w3.org/TR/xmlschema-2#string).

