title: XML schema validation, how to ignore tree inside element
body: <p>Considering this xml:</p>
  
  <pre><code>&lt;myName myClass="grandfather" name="grandfather_name" transaction="new"&gt;
  &lt;attributes&gt;
      &lt;name&gt;test name&lt;/name&gt;
      &lt;description&gt;some stuff for desc&lt;/description&gt;
      &lt;version&gt;the current version&lt;/version&gt;
  &lt;/attributes&gt;
  &lt;myName myClass="father" name="father_name" transaction="new"&gt;
      &lt;attributes&gt;
      &lt;name&gt;test name&lt;/name&gt;
      &lt;description&gt;some stuff for desc&lt;/description&gt;
      &lt;version&gt;the current version&lt;/version&gt;
      &lt;wifeName&gt;name of wife&lt;/wifeName&gt;
      &lt;/attributes&gt;
      &lt;myName myClass="child_1" name="child_1_name" transaction="new"&gt;
          &lt;attributes&gt;
              &lt;name&gt;test name&lt;/name&gt;
              &lt;description&gt;some stuff for desc&lt;/description&gt;
              &lt;version&gt;the current version&lt;/version&gt;
              &lt;GirlFriendName&gt;name of GirlFriend&lt;/GirlFriendName&gt;
          &lt;/attributes&gt;
      &lt;/myName&gt;
      &lt;myName myClass="child_2" name="child_2_name" transaction="new"&gt;
          &lt;attributes&gt;
              &lt;name&gt;test name&lt;/name&gt;
              &lt;description&gt;some stuff for desc&lt;/description&gt;
              &lt;version&gt;the current version&lt;/version&gt;
              &lt;GirlFriendName&gt;name of GirlFriend&lt;/GirlFriendName&gt;
          &lt;/attributes&gt;
      &lt;/myName&gt;
  &lt;/myName&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want to validate just the "grandfather" and its attributes, and ignore the rest of the XML.
  For that reason I added this line in the schema:
  type="xs:anyType"</p>
  
  <p>This line causes the validation to ignore the "father", but validation is failing in the "child_1" and "child_2".</p>
  
  <blockquote>
    <p>"Invalid content was found starting with element 'GirlFriendName'. No
    child element is expected at this point"</p>
  </blockquote>
  
  <p>The XSD in use is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;xs:group name="AttributesGroup"&gt; 
      &lt;xs:all&gt;
          &lt;xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" /&gt;
          &lt;xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="1" /&gt;
      &lt;/xs:all&gt;
  &lt;/xs:group&gt;
  
  &lt;!-- BASE COMPLEX TYPES DEFINITIONS --&gt;
  
  &lt;xs:complexType name="MyComplexType"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="attributes" minOccurs="1" maxOccurs="unbounded"&gt;
              &lt;xs:complexType&gt;
                      &lt;xs:group ref="AttributesGroup"/&gt;
              &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
  
          &lt;xs:element name="myName" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/&gt;
  
      &lt;/xs:sequence&gt;
  
      &lt;xs:attribute name="myClass" type="xs:string" use="required" /&gt;
      &lt;xs:attribute name="name" type="xs:string" /&gt;
      &lt;xs:attribute name="transaction" type="xs:string" use="required" /&gt;
  &lt;/xs:complexType&gt;
  
  
  &lt;!-- ROOT ELEMENT --&gt;
  &lt;xs:element name="myName" type="MyComplexType" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can I ignore everything below "Father" ?</p>