Data Validation

Data passed as input to an activity or from an event received by a process starter is validated to ensure that it conforms to its specified datatype. For example, if you pass an XML document to a Parse XML activity, the content of the document is checked to ensure that elements in the document are actually of the specified datatypes.

The following table describes the validation behavior. Datatype validation listed with the prefix xsd: is defined in the namespace http://www.w3.org/2001/XMLSchema. For more information on the proper representation of these datatypes, see XML Schema Part2: Datatypes specification at http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/. Datatype validation listed with the prefix xdt: is defined in the namespace http://www.w3.org/2003/11/xpath-datatypes. For more information on the proper representation of these datatypes, see Xquery 1.0 and Xpath 2.0 Functions and Operators specification at http://www.w3.org/TR/2003/WD-xpath-functions-20031112/.

Datatype validation

Data Type

Validation

Built-In Primitive Types

boolean

xsd:boolean

decimal

xsd:decimal

float

xsd:float

double

xsd:double

string

xsd:string

duration

xsd:duration

yearMonthDuration

xdt:yearMonthDuration

dayTimeDuration

xdt:dayTimeDuration

dateTime

xsd:dateTime

time

xsd:time

date

xsd:date

gYearMonth

xsd:gYearMonth

gYear

xsd:gYear

gMonthDay

xsd:gMonthDay

gDay

xsd:gDay

gMonth

xsd:gMonth

hexBinary

xsd:hexBinary

base64Binary

xsd:base64Binary

anyURI

xsd:anyURI

QName

xsd:QName

NOTATION

xsd:NOTATION

untypedAtomic

xdt:untypedAtomic

Built-In Derived (Atomic) Types

integer

xsd:integer

nonPositiveInteger

xsd:nonPositiveInteger

negativeInteger

xsd:negativeInteger

long

xsd:long

int

xsd:int

short

xsd:short

byte

xsd:byte

nonNegativeInteger

xsd:nonNegativeInteger

unsignedLong

xsd:unsignedLong

unsignedInt

xsd:unsignedInt

unsignedShort

xsd:unsignedShort

unsignedByte

xsd:unsignedByte

positiveInteger

xsd:positiveInteger

normalizedString

xsd:normalizedString

token

xsd:token

language

xsd:language

Name

xsd:Name

NCName

xsd:NCName

ID

xsd:ID

IDREF

xsd:IDREF

ENTITY

xsd:ENTITY

NMTOKEN

xsd:NMTOKEN