title: XSD: Validate a subnode based on its name and accept everything below
body: <p>In an XML file, I've one specific node that I want to be present, but not validate any of its content(sub-elements &amp; attributes).</p>
  
  <p><strong>Input XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;RootContainer  xmlns="MyNamespace"&gt;
      &lt;ElementA/&gt;
      &lt;ElementB/&gt;
      &lt;ElementC/&gt;
      &lt;OtherElement SomeAttribute="Value"&gt;
          &lt;SubElementX/&gt;
          &lt;SubElementY/&gt;
      &lt;/OtherElement&gt;
  &lt;/RootContainer&gt;
  </code></pre>
  
  <p><strong>XSD use to validate</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;xs:schema  targetNamespace="MyNamespace"
              elementFormDefault="qualified"
              xmlns="MyNamespace"
              xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;xs:element name="RootContainer"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name ="ElementA"/&gt;
                  &lt;xs:element name ="ElementB"/&gt;
                  &lt;xs:element name ="ElementC"/&gt;
                  &lt;xs:element name="OtherElement" minOccurs="0" maxOccurs="1" &gt;
                      &lt;xs:complexType&gt;
                          &lt;xs:sequence&gt;
                              &lt;xs:any minOccurs="0" maxOccurs="unbounded" /&gt;
                          &lt;/xs:sequence&gt;
                          &lt;xs:anyAttribute/&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>But I get several errors (With .Net, also with Notepad++(with the Xml plugin) ):
  Validation of current file using XML schema:</p>
  
  <p><strong>Notepad++ Errors:</strong></p>
  
  <pre><code>ERROR: Element '{MyNamespace}OtherElement', attribute 'SomeAttribute': No matching global attribute declaration available, but demanded by the strict wildcard. 
  ERROR: Element '{MyNamespace}SubElementX': No matching global element declaration available, but demanded by the strict wildcard. 
  ERROR: Element '{MyNamespace}SubElementY': No matching global element declaration available, but demanded by the strict 
  </code></pre>
  
  <p><strong>.Net errors:</strong></p>
  
  <pre><code>The 'SomeAttribute' attribute is not declared.
  The 'MyNamespace:SubElementX' element is not declared.
  The 'MyNamespace:SubElementY' element is not declared.
  </code></pre>
  
  <p>So why? Did I misunderstood the <code>xs:any</code> and <code>xs:anyAttribute</code>?</p>