PET Field Edits – Restrictions

Restrictions control acceptable values for XML elements. Restrictions on XML elements are called facets. The following table provides a listing of restrictions used in the PET XSD. In combination with an element’s declared data type, restrictions enable the XSD validation process not only to validate the structure of the XML file but also to validate the data values contained within the file against its XML schema definition. Every simple type element within the PET XSD has a restriction that limits the domain of acceptable values. PET Extract Files improperly structured or containing unacceptable values will not transfer to the TEA for further processing.

Available XSD Restrictions

Available XSD Restrictions

Restriction

Description

minInclusive

Specifies the lower bounds for numeric values (the value must be greater than or equal to this value)

maxInclusive

Specifies the upper bounds for numeric values (the value must be less than or equal to this value)

minLength

Specifies the minimum number of characters or list items allowed (the value must be equal to or greater than zero)

maxLength

Specifies the maximum number of characters or list items allowed (the value must be equal to or greater than zero)

pattern

Defines the exact sequence of characters that are acceptable

whiteSpace

Specifies how white space (line feeds, tabs, spaces, and carriage returns) is handled