title: cvc-elt.1: Cannot find the declaration of element 'MyElement'
body: <p>I'm trying to validate a really simple xml using xsd, but for some reason I get this error.
  I'll really appreciate if someone can explain me why.</p>
  
  <p><em>XML File</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; 
  &lt;MyElement&gt;A&lt;/MyElement&gt;
  </code></pre>
  
  <p><em>XSD File</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
          targetNamespace="http://www.example.org/Test"
          xmlns:tns="http://www.example.org/Test"
          elementFormDefault="qualified"&gt;
  
      &lt;simpleType name="MyType"&gt;
          &lt;restriction base="string"&gt;&lt;/restriction&gt;
      &lt;/simpleType&gt;
  
      &lt;element name="MyElement" type="tns:MyType"&gt;&lt;/element&gt;
  &lt;/schema&gt;
  </code></pre>