title: exception: start and end within same entity (not working)
body: <p>I'am trying to create simple xml format for icecream as root element and flavour and size as child. But there is this error:--></p>
  
  <blockquote>
    <p>(XML document structures must start and end within the same entity.
    false)</p>
  </blockquote>
  
  <p>occuring even though I added the same closing pair tags. Any help is appreciated.  </p>
  
  <p>My <code>xml file</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;icecream xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="icecream.xsd"&gt;
          &lt;flavour&gt;Vanilla&lt;/flavour&gt;
          &lt;size&gt;M&lt;/size&gt;
      &lt;/icecream&gt;
  </code></pre>
  
  <p>xsd file <code>icecream.xsd</code></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:element name="icecream"&gt;
      &lt;xs:complexType&gt;
              &lt;xs:element name="flavour"&gt;
                &lt;xs:complexType&gt;
                  &lt;xs:restriction base="xs:string"&gt;
                    &lt;xs:enumeration value="Vanilla"/&gt;
                    &lt;xs:enumeration value="StrawBerry"/&gt;
                    &lt;xs:enumeration value="Blackcurrent"/&gt;
                      &lt;xs:enumeration value="Butter Scotch"/&gt;
                  &lt;/xs:restriction&gt;
                &lt;/xs:complexType&gt;
              &lt;/xs:element&gt; 
              &lt;xs:element name="size"&gt;
                &lt;xs:complexType&gt;
                  &lt;xs:restriction base="xs:string"&gt;
                    &lt;xs:enumeration value="S"/&gt;
                    &lt;xs:enumeration value="M"/&gt;
                    &lt;xs:enumeration value="L"/&gt;
                  &lt;/xs:restriction&gt;
                &lt;/xs:complexType&gt;
              &lt;/xs:element&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p></p>