title: The content of 'sequence' must match annotation?, (element | group | choice | sequence | any)*)
body: <p>I keep getting this error:</p>
  
  <blockquote>
    <p>The content of 'sequence' must match annotation?, (element | group | choice | sequence | any)*). A problem was found starting at: simpleType. The xsd has to include an example of custom named simpleType.</p>
  </blockquote>
  
  <p>I was trying to include that example but can't figure out what I'm doing wrong. </p>
  
  <p>This is my XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;famous_landmarks&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;St Basil&amp;apos;s Cathedral&lt;/name&gt;
          &lt;name language="Russian"&gt;собо́р Васи́лия Блаже́нного&lt;/name&gt;
          &lt;location&gt;Moscow, Russia&lt;/location&gt;
          &lt;height unit="feet"&gt;156&lt;/height&gt;
          &lt;year_built&gt;1561&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;St Peter&amp;apos;s Cathedral&lt;/name&gt;
          &lt;name language="Latin"&gt;Basilica Sancti Petri&lt;/name&gt;
          &lt;location&gt;Vatican City&lt;/location&gt;
          &lt;!-- It is an independent city-state enclaved within Rome, Italy --&gt;
          &lt;height unit="feet"&gt;448&lt;/height&gt;
          &lt;year_built&gt;1626&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Christ the Redeemer&lt;/name&gt;
          &lt;name language="Portuguese"&gt;Cristo Redentor&lt;/name&gt;
          &lt;location&gt;Rio de Janeiro, Brazil&lt;/location&gt;
          &lt;height unit="feet"&gt;125&lt;/height&gt;
          &lt;year_built&gt;1931&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Hagia Sophia&lt;/name&gt;
          &lt;name language="Greek"&gt;Αγία Σοφία&lt;/name&gt;
          &lt;!-- Originally a cathedral, it was converted into a mosque and then a museum --&gt;
          &lt;location&gt;Istanbul, Turkey&lt;/location&gt;
          &lt;height unit="feet"&gt;180&lt;/height&gt;
          &lt;year_built&gt;537&lt;/year_built&gt;
          &lt;image file="hagiasophia.png"/&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Brandenburg Gate&lt;/name&gt;
          &lt;name language="German"&gt;Brandenburger Tor&lt;/name&gt;
          &lt;location&gt;Berlin, Germany&lt;/location&gt;
          &lt;height unit="feet"&gt;85&lt;/height&gt;
          &lt;year_built&gt;1791&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Neuschwanstein Castle&lt;/name&gt;
          &lt;name language="German"&gt;Schloss Neuschwanstein&lt;/name&gt;
          &lt;location&gt;Hohenschwangau, Germany&lt;/location&gt;
          &lt;height unit="feet"&gt;213&lt;/height&gt;
          &lt;year_built&gt;1886&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Dome of the Rock&lt;/name&gt;
          &lt;name language="Arabic"&gt;Qubbat al-Sakhrahة‎&lt;/name&gt;
          &lt;location&gt;Jerusalem, Israel&lt;/location&gt;
          &lt;height unit="feet"&gt;115&lt;/height&gt;
          &lt;year_built&gt;692&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Statue of Liberty&lt;/name&gt;
          &lt;location&gt;New York City, United States&lt;/location&gt;
          &lt;height unit="feet"&gt;305&lt;/height&gt;
          &lt;year_built&gt;1886&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt;Big Ben&lt;/name&gt;
          &lt;location&gt;London, England&lt;/location&gt;
          &lt;height unit="feet"&gt;315&lt;/height&gt;
          &lt;year_built&gt;1859&lt;/year_built&gt;
      &lt;/landmark&gt;
      &lt;landmark&gt;
          &lt;name language="English"&gt; Angel of Independence&lt;/name&gt;
          &lt;name language="Spanish"&gt;Monumento a la Independencia&lt;/name&gt;
          &lt;location&gt;Mexico City, Mexico&lt;/location&gt;
          &lt;height unit="feet"&gt;148&lt;/height&gt;
          &lt;year_built&gt;1910&lt;/year_built&gt;
      &lt;/landmark&gt;
  &lt;/famous_landmarks&gt;
  </code></pre>
  
  <p>This is my xsd:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.famouslandmarks.com" targetNamespace="www.famouslandmarks.com"&gt;
      &lt;xs:element name="famous_landmarks"&gt;
          &lt;!--feature 2: complex type element containing child elements--&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name="name"&gt;
                      &lt;xs:complexType&gt;
                          &lt;!--feature 6: required attribute--&gt;
                          &lt;xs:attribute name="language" use="required"&gt;
                              &lt;xs:simpleType&gt;
                                  &lt;xs:restriction base="xs:string"&gt;
                                      &lt;!--feature 8: specification of a set of acceptable values--&gt;
                                      &lt;xs:enumeration value="English" /&gt;
                                      &lt;xs:enumeration value="Arabic" /&gt;
                                      &lt;xs:enumeration value="German" /&gt;
                                      &lt;xs:enumeration value="Greek" /&gt;
                                      &lt;xs:enumeration value="Latin" /&gt;
                                      &lt;xs:enumeration value="Portuguese" /&gt;
                                      &lt;xs:enumeration value="Russian" /&gt;
                                      &lt;xs:enumeration value="Spanish" /&gt;
                                  &lt;/xs:restriction&gt;
                              &lt;/xs:simpleType&gt;
                          &lt;/xs:attribute&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
                  &lt;!--feature 3: named custom simple type--&gt;
                  &lt;xs:simpleType name="location_type"&gt;
                      &lt;xs:restriction base="xs:string" /&gt;
                  &lt;/xs:simpleType&gt;
                  &lt;xs:element name="location" type="location_type" /&gt;
                  &lt;!--feature 9: specification of minimum and maximum number of occurrences--&gt;
                  &lt;xs:element name="height" minOccurs="1" maxOccurs="1"&gt;
                      &lt;xs:simpleType&gt;
                          &lt;!--feature 4: non-string data type--&gt;
                          &lt;xs:restriction base="xs:integer"&gt;
                              &lt;!--feature 7: range of acceptable values--&gt;
                              &lt;xs:minInclusive value="0" /&gt;
                              &lt;xs:maxInclusive value="448" /&gt;
                          &lt;/xs:restriction&gt;
                      &lt;/xs:simpleType&gt;
                  &lt;/xs:element&gt;
                  &lt;!--feature 1: simple type element --&gt;
                  &lt;xs:element name="year_built" type="xs:gYear" /&gt;
                  &lt;!--feature 5: "fixed" attribute--&gt;
                  &lt;xs:element name="era" type="xs:string" fixed="AD" /&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>I'm at my wits end and would appreciate any help.</p>