title: SAX Parser Exception
body: <p>getting this error:</p>
  
  <p>SAX Parser Exception.</p>
  
  <p>cvc-elt.1: Cannot find the declaration of element 'xs:schema'.</p>
  
  <p>with this xsd:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="http://nrg.wustl.edu/tx"  xmlns:tx="http://nrg.wustl.edu/tx" xmlns:xnat="http://nrg.wustl.edu/xnat" xmlns:xdat="http://cnl.wustl.edu/xdat" elementFormDefault="qualified" attributeFormDefault="unqualified"&gt;
      &lt;xs:import namespace="http://nrg.wustl.edu/xnat" schemaLocation="../xnat/xnat.xsd"/&gt;
      &lt;xs:import namespace="http://cnl.wustl.edu/xdat" schemaLocation="../xdat/xdat.xsd"/&gt;
      &lt;xs:element name="MedicationTreatmentList" type="tx:medTreatmentList" /&gt;
      &lt;xs:element name="TreatmentList" type="tx:treatmentList" /&gt;
      &lt;xs:element name="ChemotherapyTreatment" type="tx:chemotherapyTreatment" /&gt;
      &lt;xs:element name="RadiationTreatment" type="tx:radiationTreatment" /&gt;
      &lt;xs:complexType name="medTreatment"&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element name="code" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="codeType" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="name" type="xs:string" minOccurs="0" maxOccurs="1"&gt;
                  &lt;xs:annotation&gt;
                      &lt;xs:appinfo&gt;
                          &lt;xdat:field uniqueComposite="NAME_DATE_FK"/&gt;
                      &lt;/xs:appinfo&gt;
                  &lt;/xs:annotation&gt;
              &lt;/xs:element&gt;
              &lt;xs:element name="status" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="doseAmount" type="xs:float" minOccurs="0" /&gt;
              &lt;xs:element name="doseUnit" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="doseSchedule" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="route" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="indication" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="startDate" type="xs:date" minOccurs="0" maxOccurs="1"&gt;
                  &lt;xs:annotation&gt;
                      &lt;xs:appinfo&gt;
                          &lt;xdat:field uniqueComposite="NAME_DATE_FK"/&gt;
                      &lt;/xs:appinfo&gt;
                  &lt;/xs:annotation&gt;
              &lt;/xs:element&gt;
              &lt;xs:element name="startDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="startDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="startDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDate" type="xs:date" minOccurs="0" /&gt;
              &lt;xs:element name="endDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="clinicalTrialName" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="clinicalTrialArm" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="treatmentNotes" minOccurs="0"&gt;
                  &lt;xs:simpleType&gt;
                      &lt;xs:restriction base="xs:string"&gt;
                          &lt;xs:maxLength value="1000" /&gt;
                      &lt;/xs:restriction&gt;
                  &lt;/xs:simpleType&gt;
              &lt;/xs:element&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="medTreatmentList"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="xnat:subjectAssessorData"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="medTreatments" minOccurs="0"&gt;
                          &lt;xs:complexType&gt;
                              &lt;xs:sequence&gt;
                                  &lt;xs:element name="medTreatment" type="medTreatment" minOccurs="0" maxOccurs="unbounded"&gt;
                                      &lt;xs:annotation&gt;
                                          &lt;xs:appinfo&gt;
                                              &lt;xdat:field&gt;
                                                  &lt;xdat:relation uniqueComposite="NAME_DATE_FK" relationType="single"/&gt;
                                              &lt;/xdat:field&gt;
                                          &lt;/xs:appinfo&gt;
                                      &lt;/xs:annotation&gt;
                                  &lt;/xs:element&gt;
                              &lt;/xs:sequence&gt;
                          &lt;/xs:complexType&gt;
                      &lt;/xs:element&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="treatment"&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element name="code" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="codeType" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="name" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="status" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="doseAmount" type="xs:float" minOccurs="0" /&gt;
              &lt;xs:element name="doseUnit" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="doseSchedule" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="route" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="indication" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="startDate" type="xs:date" minOccurs="0" /&gt;
              &lt;xs:element name="startDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="startDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="startDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDate" type="xs:date" minOccurs="0" /&gt;
              &lt;xs:element name="endDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="endDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
              &lt;xs:element name="clinicalTrialName" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="clinicalTrialArm" type="xs:string" minOccurs="0" /&gt;
              &lt;xs:element name="treatmentNotes" minOccurs="0"&gt;
                  &lt;xs:simpleType&gt;
                      &lt;xs:restriction base="xs:string"&gt;
                          &lt;xs:maxLength value="1000" /&gt;
                      &lt;/xs:restriction&gt;
                  &lt;/xs:simpleType&gt;
              &lt;/xs:element&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="treatmentList"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="xnat:subjectAssessorData"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="treatments" minOccurs="0"&gt;
                          &lt;xs:complexType&gt;
                              &lt;xs:sequence&gt;
                                  &lt;xs:element name="treatment" type="tx:treatment" minOccurs="0" maxOccurs="unbounded"&gt;
                                      &lt;xs:annotation&gt;
                                          &lt;xs:appinfo&gt;
                                              &lt;xdat:field&gt;
                                                  &lt;xdat:relation relationType="multi" relationName="tx_treatmentList_treatment"/&gt;
                                              &lt;/xdat:field&gt;
                                          &lt;/xs:appinfo&gt;
                                      &lt;/xs:annotation&gt;
                                  &lt;/xs:element&gt;
                              &lt;/xs:sequence&gt;
                          &lt;/xs:complexType&gt;
                      &lt;/xs:element&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="baseTreatment"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="xnat:subjectAssessorData"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="type" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="unit" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="dose" type="xs:float" minOccurs="0" /&gt;
                      &lt;xs:element name="timing" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="startDate" type="xs:date" minOccurs="0" /&gt;
                      &lt;xs:element name="startDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="startDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="startDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="endDate" type="xs:date" minOccurs="0" /&gt;
                      &lt;xs:element name="endDateDayNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="endDateMonthNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="endDateYearNotReported" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="completed" type="xs:boolean" minOccurs="0" /&gt;
                      &lt;xs:element name="incompleteReason" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="incompleteExtent" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="clinicalTrialName" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="clinicalTrialArm" type="xs:string" minOccurs="0" /&gt;
                      &lt;xs:element name="completedNotes" minOccurs="0"&gt;
                          &lt;xs:simpleType&gt;
                              &lt;xs:restriction base="xs:string"&gt;
                                  &lt;xs:maxLength value="1000" /&gt;
                              &lt;/xs:restriction&gt;
                          &lt;/xs:simpleType&gt;
                      &lt;/xs:element&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="chemotherapyTreatment"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="tx:baseTreatment" /&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="radiationTreatment"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="tx:baseTreatment" /&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>The declaration looks to be correct from what I can see. I have gone over this several times and can't come up with anything. Any thoughts?</p>