title: XML Invalid content was found starting with element. One of '{}' is expected
body: <p>I was validating an XSD against a XML document, and I get this error:</p>
  
  <blockquote>
    <p>cvc-complex-type.2.4.a: Invalid content was found starting with
    element 'artSpent:name'. One of
    <code>'{"http://www.dei.isep.ipp.pt/lprog":name}'</code> is expected. [467]</p>
  </blockquote>
  
  <p>Here is a XSD sample</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsd:schema version="1.0"
              xmlns:lprog="http://www.dei.isep.ipp.pt/lprog"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              targetNamespace="http://www.dei.isep.ipp.pt/lprog" 
              elementFormDefault="qualified"&gt;
  
      &lt;xsd:element name="warehouse"&gt;
          &lt;xsd:complexType&gt;
              &lt;xsd:sequence&gt;
                  &lt;xsd:element name="ListSpent" 
                               type="lprog:TListSpent" 
                               maxOccurs="unbounded"/&gt;
              &lt;/xsd:sequence&gt;
          &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;       
  
         &lt;xsd:complexType name="ListSpent"&gt;
          &lt;xsd:sequence &gt;
              &lt;xsd:element name="Spent" 
                           type="lprog:TSpent" 
                           maxOccurs="unbounded"/&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;  
  
         &lt;xsd:complexType name="TSpent"&gt;
          &lt;xsd:sequence &gt;
              &lt;xsd:element name="name" type="xsd:string" /&gt;
              &lt;xsd:element name="stock" type="lprog:TQtdArtigo" /&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;     
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <hr>
  
  <p>And my XML sample</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
     &lt;warehouse xmlns="http://www.dei.isep.ipp.pt/lprog"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.dei.isep.ipp.pt/lprog 
                               TraXSD.xsd"&gt;
  
       &lt;ListSpent xmlns:artSpent="http://www.w3.org/2001/XMLSchema-instance" 
                  artSpent:noNamespaceSchemaLocation="TraXSD.xsd"&gt;
          &lt;Spent&gt;
              &lt;artSpent:name&gt;Meat&lt;/artSpent:name&gt;
              &lt;artSpent:stock&gt;2&lt;/artSpent:stock&gt;
          &lt;/Spent&gt;    
      &lt;/ListSpent&gt;
  &lt;/warehouse&gt;   
  </code></pre>