I'm using Xerces 1.4.2 to validate an XML file against a schema and I
keep getting the following error. I've tried resetting all the
whitespace attributes but continue to get the error. I'm also enclosing
the XML file and schema. Does anyone have a suggestion as to what I can
try that I haven't already tried? Thanks.
Error is test.xml:3:88 Datatype error: whiteSpace value 'preserve' for
this type must be 'collapse'..
C://inetpub//wwwroot//AETC//xml//Temp//test.xml: 578 ms (28 elems, 2
attrs, 59 spaces, 94 chars)
XML File:
<?xml version='1.0'?>
<TTMS xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='http://space-xml.mitre.org/aetc/schemas/ttms.xsd'>
<STUDENT>
<PRSN_DSGNTR_SSN_ID>600040130</PRSN_DSGNTR_SSN_ID>
<PERSON_ID>16</PERSON_ID>
<STUDENT_CLASS_ASSIGNMENT_EVENT_ID>20</STUDENT_CLASS_ASSIGNMENT_EVENT_ID>
<COURSEID>
<ORGZN_ID>L</ORGZN_ID>
<STDNT_TRNG_RQMT_TRNG_TYP_CD>6</STDNT_TRNG_RQMT_TRNG_TYP_CD>
<STDNT_TRNG_RQMT_STDNT_TYP_CD>A</STDNT_TRNG_RQMT_STDNT_TYP_CD>
<INSTL_UNIT_TYP_CD>G</INSTL_UNIT_TYP_CD>
<ORGZN_INSTR_UNIT_RL_CD>J</ORGZN_INSTR_UNIT_RL_CD>
<OCPTN_DSGNTR_ASGND_ID>3P031 </OCPTN_DSGNTR_ASGND_ID>
<REVISION>001</REVISION>
</COURSEID>
<INSTL_CLS_ID>0</INSTL_CLS_ID>
<INSTL_CLS_ID_FK>1</INSTL_CLS_ID_FK>
<INSTL_BLK_ID>L6AGU3P031 001</INSTL_BLK_ID>
<STDNT_CLS_ASGN_EVNT_STTS_CD>ETE</STDNT_CLS_ASGN_EVNT_STTS_CD>
<STDNT_CLS_ASGN_EVNT_CLNDR_DTTM>20001006</STDNT_CLS_ASGN_EVNT_CLNDR_DTTM>
<UNIF_SVC_RNK_CD>B</UNIF_SVC_RNK_CD>
<PRSN_DTY_STTS_CD xsi:nil='true'> </PRSN_DTY_STTS_CD>
<PRSN_ACSSN_TYP_CD>true</PRSN_ACSSN_TYP_CD>
<TRNG_RQMT_RQST_ID>AJ10</TRNG_RQMT_RQST_ID>
<USRNK_CD> 31</USRNK_CD>
<SEX_CTGRY_CD>M</SEX_CTGRY_CD>
<STDNT_TRNG_REQ_STTS_CD>ZBJ2021230</STDNT_TRNG_REQ_STTS_CD>
<SUBORD_ORGZN_ID>342</SUBORD_ORGZN_ID>
<STDNT_SRC_ORGZN_TYP>TTMS</STDNT_SRC_ORGZN_TYP>
<DATA_DATE>09102001</DATA_DATE>
</STUDENT>
</TTMS>
Schema:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.0 U beta 3.1 build Aug 27 2001
(http://www.xmlspy.com) by Karen Fox (The Mitre Corporation) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified">
<xsd:element name="TTMS">
<xsd:annotation>
<xsd:documentation>TTMS Data</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="STUDENT" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Wrapper for each
record</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PRSN_DSGNTR_SSN_ID">
<xsd:annotation>
<xsd:documentation>SSN</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="9"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PERSON_ID">
<xsd:annotation>
<xsd:documentation>Unique ID for Person
Table</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STUDENT_CLASS_ASSIGNMENT_EVENT_ID">
<xsd:annotation>
<xsd:documentation>Unique ID for Student Class Assignment
Event
Table</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="COURSEID">
<xsd:annotation>
<xsd:documentation>Course ID</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ORGZN_ID">
<xsd:annotation>
<xsd:documentation>Training Base
ID</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="J"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="X"/>
<xsd:enumeration value="V"/>
<xsd:enumeration value="W"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_TRNG_RQMT_TRNG_TYP_CD">
<xsd:annotation>
<xsd:documentation>Training Type</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="M"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="4"/>
<xsd:enumeration value="5"/>
<xsd:enumeration value="6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_TRNG_RQMT_STDNT_TYP_CD">
<xsd:annotation>
<xsd:documentation>Student Type</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:enumeration value="A"/>
<xsd:enumeration value="O"/>
<xsd:enumeration value="R"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="INSTL_UNIT_TYP_CD">
<xsd:annotation>
<xsd:documentation>Planned Area</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="G"/>
<xsd:enumeration value="H"/>
<xsd:enumeration value="I"/>
<xsd:enumeration value="J"/>
<xsd:enumeration value="K"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="O"/>
<xsd:enumeration value="P"/>
<xsd:enumeration value="Q"/>
<xsd:enumeration value="R"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="V"/>
<xsd:enumeration value="Z"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ORGZN_INSTR_UNIT_RL_CD">
<xsd:annotation>
<xsd:documentation>Activity or
Method</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="G"/>
<xsd:enumeration value="H"/>
<xsd:enumeration value="K"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="O"/>
<xsd:enumeration value="P"/>
<xsd:enumeration value="Q"/>
<xsd:enumeration value="R"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="T"/>
<xsd:enumeration value="U"/>
<xsd:enumeration value="W"/>
<xsd:enumeration value="X"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value="Z"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="OCPTN_DSGNTR_ASGND_ID">
<xsd:annotation>
<xsd:documentation>AFSC</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="REVISION">
<xsd:annotation>
<xsd:documentation>Course Revision
Number</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="INSTL_CLS_ID">
<xsd:annotation>
<xsd:documentation>Class Number</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="INSTL_CLS_ID_FK">
<xsd:annotation>
<xsd:documentation>Class ID Foreign
Key</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="INSTL_BLK_ID">
<xsd:annotation>
<xsd:documentation>Block ID</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
<xsd:minLength value="0"/>
<xsd:maxLength value="25"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_CLS_ASGN_EVNT_STTS_CD">
<xsd:annotation>
<xsd:documentation>Status or Code</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="3"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_CLS_ASGN_EVNT_CLNDR_DTTM">
<xsd:annotation>
<xsd:documentation>Effective Date</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="UNIF_SVC_RNK_CD">
<xsd:annotation>
<xsd:documentation>Military Status</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="R"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="U"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PRSN_DTY_STTS_CD" nillable="true">
<xsd:annotation>
<xsd:documentation>BTT Student Type</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="1"/>
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="0"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PRSN_ACSSN_TYP_CD" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>NPS STudent</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TRNG_RQMT_RQST_ID">
<xsd:annotation>
<xsd:documentation>TRQI</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="4"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="USRNK_CD">
<xsd:annotation>
<xsd:documentation>Current Grade</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="4"/>
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="01"/>
<xsd:enumeration value="02"/>
<xsd:enumeration value="03"/>
<xsd:enumeration value="04"/>
<xsd:enumeration value="05"/>
<xsd:enumeration value="06"/>
<xsd:enumeration value="07"/>
<xsd:enumeration value="08"/>
<xsd:enumeration value="09"/>
<xsd:enumeration value="10"/>
<xsd:enumeration value="21"/>
<xsd:enumeration value="22"/>
<xsd:enumeration value="23"/>
<xsd:enumeration value="24"/>
<xsd:enumeration value="31"/>
<xsd:enumeration value="32"/>
<xsd:enumeration value="33"/>
<xsd:enumeration value="34"/>
<xsd:enumeration value="35"/>
<xsd:enumeration value="36"/>
<xsd:enumeration value="37"/>
<xsd:enumeration value="38"/>
<xsd:enumeration value="39"/>
<xsd:enumeration value="99"/>
<xsd:enumeration value="GS01"/>
<xsd:enumeration value="GS02"/>
<xsd:enumeration value="GS03"/>
<xsd:enumeration value="GS04"/>
<xsd:enumeration value="GS05"/>
<xsd:enumeration value="GS06"/>
<xsd:enumeration value="GS07"/>
<xsd:enumeration value="GS08"/>
<xsd:enumeration value="GS09"/>
<xsd:enumeration value="GS10"/>
<xsd:enumeration value="GS11"/>
<xsd:enumeration value="GS12"/>
<xsd:enumeration value="GS13"/>
<xsd:enumeration value="GS14"/>
<xsd:enumeration value="GS15"/>
<xsd:enumeration value="GS16"/>
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
<xsd:enumeration value="4"/>
<xsd:enumeration value="5"/>
<xsd:enumeration value="6"/>
<xsd:enumeration value="7"/>
<xsd:enumeration value="8"/>
<xsd:enumeration value="9"/>
<xsd:enumeration value="W-1"/>
<xsd:enumeration value="W-2"/>
<xsd:enumeration value="W-3"/>
<xsd:enumeration value="W-4"/>
<xsd:enumeration value=" 01"/>
<xsd:enumeration value=" 02"/>
<xsd:enumeration value=" 03"/>
<xsd:enumeration value=" 04"/>
<xsd:enumeration value=" 05"/>
<xsd:enumeration value=" 06"/>
<xsd:enumeration value=" 07"/>
<xsd:enumeration value=" 08"/>
<xsd:enumeration value=" 09"/>
<xsd:enumeration value=" 10"/>
<xsd:enumeration value=" 21"/>
<xsd:enumeration value=" 22"/>
<xsd:enumeration value=" 23"/>
<xsd:enumeration value=" 24"/>
<xsd:enumeration value=" 31"/>
<xsd:enumeration value=" 32"/>
<xsd:enumeration value=" 33"/>
<xsd:enumeration value=" 34"/>
<xsd:enumeration value=" 35"/>
<xsd:enumeration value=" 36"/>
<xsd:enumeration value=" 37"/>
<xsd:enumeration value=" 38"/>
<xsd:enumeration value=" 39"/>
<xsd:enumeration value=" 99"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="SEX_CTGRY_CD">
<xsd:annotation>
<xsd:documentation>Sex</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="1"/>
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="M"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_TRNG_REQ_STTS_CD">
<xsd:annotation>
<xsd:documentation>Training Line
Number</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="10"/>
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="SUBORD_ORGZN_ID">
<xsd:annotation>
<xsd:documentation>Squadron</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="STDNT_SRC_ORGZN_TYP">
<xsd:annotation>
<xsd:documentation>Data Source</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="DATA_DATE">
<xsd:annotation>
<xsd:documentation>Date data is input</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Karen Foxbegin:vcard
n:Fox;Karen
tel;fax:719-572-8477
tel;work:719-572-8368
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Karen Fox
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]