PET XSD Data Types and Restrictions

PET supports built-in data types. Restrictions control acceptable values for XML elements. Restrictions also used in the XSD validation process validate both the structure of the XML file and the data values against the XML Schema Definition.

Note: In constructing a PET XML file, for each StudentID, all EnrollDate elements are clustered together followed by all WithdrawDate elements clustered together.

PET XSD Data Types and Restrictions

PET XSD Data Types and Restrictions

Element Name

Data Type

Restriction

StudentID

String

• The only acceptable value for the first position is an ‘S’ or a character in the range of 0 to 8.

• For positions two through nine, the only acceptable value is eight characters in a sequence with each character in a range from 0 to 9.

TXUniqueStudentID

String

• The TX-UNIQUE-STUDENT-ID is issued to schools by the TSDS TX Unique ID Application. The TX-UNIQUE-STUDENT-ID cannot be generated by a Local Education Agency (LEA).

FirstName

String

• The minimum length is 1 and the maximum length is 17 characters.

• White space is preserved.

• The only acceptable value is a sequence of at least 1 to 17 characters with each character either an upper case A through Z, an apostrophe, a hyphen, a 0 through 9, or a space.

MiddleName

String

• The minimum length is 0 and the maximum length is 14 characters.

• White space is preserved.

• The only acceptable value is a sequence 0 to 14 characters with each character either an upper case A through Z, an apostrophe, a hyphen, a 0 through 9, a space, or an equal sign.

LastName

String

• The minimum length is 1 and the maximum length is 25 characters.

• White space is preserved.

• The only acceptable value is a sequence of at least 1 to 25 characters with each character either an upper case A through Z, an apostrophe, a hyphen, a 0 through 9, or a space.

BirthDate

Date

• This data type implements an International Standards Organization (ISO) data type in the form of yyyy-mm-dd.

• BirthDate must be a valid date.

SexCode

String

• Limited to a single character.

• The only acceptable value is one of the following letters: “M” or “F”.

GenerationCode

String

• Optional element.

• Minimum length of 0 and a maximum length of a single character.

• If provided, the only acceptable value is a single character in a range from 1 to 9.

AmericanIndianAlaskanNativeCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

AsianCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

BlackAfricanAmericanCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

NativeHawaiianPacificIslandCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

WhiteCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

HispanicLatinoCd

String

• Limited to a single character.

• The only acceptable values are single characters 0 and 1.

PETData

N/A

• Section of the XML file that contains all of the PET events for a given student organized by Campus ID of Enrollment.

CampusData

N/A

• Section of the XML file that contains all of the PET events for a given student for a single Campus ID of Enrollment organized into one or more PET Event Sets.

• A PET Event Set is comprised of one and only one enrollment event and one withdrawal event, if available. If the withdrawal event is available, it must be reported in the PET Event Set.

• For a given student, there should be one PET Event Set for each occurrence of a ‘real’ or physical enrollment and withdrawal from the Campus ID of Enrollment. Enrollment and withdrawal events created internally in support of a program or eligibility change should not be reported.

CampusIDofEnrollment

String

• Declared as a string data type in order to allow for zeros in the first position.

• The only acceptable value is nine characters in a sequence with each character in a range from 0 to 9.

LocalID

String

• LocalID is an optional element from the point of view of the PET XSD. If provided, it has been declared as a string data type with a minimum length of 0 and a maximum length of 9.

• Consistent with the PEIMS Data Standards’ Name Field pattern, any of the following characters, in addition to the space character, are valid:

ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~ ! @ # $ % ^ & * ( ) - _ + = : ; " ' , . / < > ?

GradeLevelCode

String

• GRADE-LEVEL-CODE indicates the current grade level of the student.

• The only acceptable value is one of the following: EE, PK, KG, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12

PETEventSet

N/A

• Section of the XML file that contains the PET events for a single PET Event Set. This set must contain one enrollment event and one withdrawal event, if available.

• At most, a given PET Event Set will contain one enrollment event and one withdrawal event.

EnrollDate

Date

• Required data element.

• A PET Event Set must contain one enrollment event.

• The only acceptable value is a valid date with a minimum value greater than or equal to 2015-06-01 and less than or equal to 2016-08-31.

WithdrawDate

Date

• Required data element and must be reported when available.

• A PET Event Set may contain one withdrawal event.

• The only acceptable value is a valid date with a minimum value greater than or equal to 2015-06-01 and less than or equal to 2016-08-31.