title: XML schema - "Element not supported in this context"
body: <p>I'm having a problem with my last content in my code. It says that:</p>
  
  <blockquote>
    <p>"<a href="http://www.w3.org/2001/XMLSchema" rel="nofollow noreferrer">http://www.w3.org/2001/XMLSchema</a>" is not supported in this context. </p>
  </blockquote>
  
  <p>How do I solve this?</p>
  
  <p>Screenshot of the problem: </p>
  
  <p><a href="https://i.stack.imgur.com/XZqei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XZqei.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"   
  xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="Ansökan"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name="hejsanförskolan"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;   
                &lt;xs:element maxOccurs="2" name="vårdnadstagare"&gt;
                  &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element name="personnummer" type="datatypPersonnummer"minOccurs="1" /&gt;
                      &lt;xs:element name="förnamn" type="xs:string" minOccurs="1" /&gt;
                      &lt;xs:element name="efternamn" type="xs:string" minOccurs="1" /&gt;
                      &lt;xs:element name="Adress" type="xs:string" minOccurs="1" /&gt;
                      &lt;xs:element name="Telefonnummer" type="xs:unsignedInt" minOccurs="1" /&gt;
                    &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                &lt;/xs:element&gt;                 
                &lt;xs:element name="ömmandeskäl"&gt;
                  &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element name="allergi" type="xs:string" /&gt;
                    &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
          &lt;xs:simpleType name="datatypPersonnummer"&gt;
            &lt;xs:restriction base="xs:string"&gt;
              &lt;xs:pattern value="[0-9]{10}"/&gt;
            &lt;/xs:restriction&gt;
          &lt;/xs:simpleType&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>