title: Not able to parse XML document
body: <p>I am not able to parse this xml. can anyone please help me what is wrong in this</p>
  
  <p>Here is my XML file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;gea-sr:GETOFFERSResponse 
    xmlns:gea-sr="http://schemas.com/soap/requests" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://schemas.com/soap/requests 
                        file:///C:/Users/Desktop/SMCWebResponse.xsd"&gt;
      &lt;requestdate dateDescription="Wed" requestdate="2012-12-19"/&gt;
      &lt;requestdate dateDescription="Mon" requestdate="2012-12-24"&gt;
          &lt;offer timeperiod="0800-1200" timeperioddesc="AM 8-12"&gt;
              &lt;offertoken/&gt;
              &lt;offertext&gt;12657131N3AM 0004 T000000000N&lt;/offertext&gt;
              &lt;offerremarks/&gt;
              &lt;offerflag&gt;F&lt;/offerflag&gt;
          &lt;/offer&gt;
          &lt;offer timeperiod="1300-1700" timeperioddesc="PM 1-5"&gt;
              &lt;offertoken/&gt;
              &lt;offertext&gt;12657131N3AA 0006 T000000000N&lt;/offertext&gt;
              &lt;offerremarks/&gt;
              &lt;offerflag&gt;F&lt;/offerflag&gt;
          &lt;/offer&gt;
      &lt;/requestdate&gt;
  &lt;/gea-sr:GETOFFERSResponse&gt;"
  </code></pre>
  
  <p>Here is my XSD snapshot that I am trying to use for parsing</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gea-sr="http://schemas.com/soap/requests" elementFormDefault="qualified" attributeFormDefault="unqualified"&gt;
      &lt;xsd:complexType name="requestdateType"&gt;
          &lt;xsd:sequence&gt;
              &lt;xsd:element name="offer" type="offerType" minOccurs="0" maxOccurs="unbounded"/&gt;
          &lt;/xsd:sequence&gt;
          &lt;xsd:attribute name="requestdate" type="xsd:date"/&gt;
          &lt;xsd:attribute name="datedescription"&gt;
              &lt;xsd:simpleType&gt;
                  &lt;xsd:restriction base="xsd:string"&gt;
                      &lt;xsd:maxLength value="10"/&gt;
                      &lt;xsd:whiteSpace value="collapse"/&gt;
                  &lt;/xsd:restriction&gt;
              &lt;/xsd:simpleType&gt;
          &lt;/xsd:attribute&gt;
      &lt;/xsd:complexType&gt;
  
  &lt;xsd:complexType name="offerType"&gt;
          &lt;xsd:all&gt;
              &lt;xsd:element name="offertoken" type="offertokenType"/&gt;
              &lt;xsd:element name="offertext" type="offertextType"/&gt;
              &lt;xsd:element name="offerremarks" type="offerremarksType"/&gt;
              &lt;xsd:element name="offerflag" type="offerflagType"/&gt;
          &lt;/xsd:all&gt;
          &lt;xsd:attribute name="timeperiod" type="timespanType"/&gt;
          &lt;xsd:attribute name="timeperioddescription"&gt;
              &lt;xsd:simpleType&gt;
                  &lt;xsd:restriction base="xsd:string"&gt;
                      &lt;xsd:maxLength value="25"/&gt;
                      &lt;xsd:whiteSpace value="collapse"/&gt;
                  &lt;/xsd:restriction&gt;
              &lt;/xsd:simpleType&gt;
          &lt;/xsd:attribute&gt;
      &lt;/xsd:complexType&gt;
  
  &lt;xsd:simpleType name="timespanType"&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:enumeration value="0800-1200"/&gt;
              &lt;xsd:enumeration value="1300-1700"/&gt;
              &lt;xsd:enumeration value="0800-1700"/&gt;
              &lt;xsd:enumeration value="1000-1700"/&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
      &lt;xsd:simpleType name="offertokenType"&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:maxLength value="50"/&gt;
              &lt;xsd:whiteSpace value="collapse"/&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
      &lt;xsd:simpleType name="offertextType"&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:maxLength value="50"/&gt;
              &lt;xsd:minLength value="19"/&gt;
              &lt;xsd:whiteSpace value="collapse"/&gt;
              &lt;xsd:pattern value="[^\s].*"/&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
      &lt;xsd:simpleType name="offerremarksType"&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:maxLength value="50"/&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
      &lt;xsd:simpleType name="offerflagType"&gt;
          &lt;xsd:restriction base="xsd:string"&gt;
              &lt;xsd:whiteSpace value="collapse"/&gt;
              &lt;xsd:enumeration value="A"/&gt;
              &lt;xsd:enumeration value="F"/&gt;
          &lt;/xsd:restriction&gt;
      &lt;/xsd:simpleType&gt;
  
      &lt;xsd:element name="GETOFFERSResponse"&gt;
          &lt;xsd:complexType&gt;
              &lt;xsd:sequence&gt;
                  &lt;xsd:element name="requestdate" type="gea-sr:requestdateType" maxOccurs="unbounded" /&gt;
              &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
  </code></pre>
  
  <p>I get the error 
  cvc-elt.5.2.1: The element  is not valid with respect to the actual type definition '{anonymous}'.
  cvc-model-group: Element  unexpected by type '{anonymous}' of element .</p>