title: Validate XML against XSD and ignore order of child elements
body: <p>I have a method in a C# app that validates a user input XML file against an embedded XSD.  It works just fine, but it requires that all the child elements be in the exact order defined in the XSD.  To me though, the order doesn't matter so long as the elements exist.</p>
  
  <p>For example, if I had the following XSD...</p>
  
  <pre><code>&lt;xs:element maxOccurs="unbounded" name="ParentElement"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="FirstChildElement" type="xs:string" /&gt;
        &lt;xs:element name="SecondChildElement" type="xs:string" /&gt;
        &lt;xs:element name="ThirdChildElement" type="xs:string" /&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>And an XML like this...</p>
  
  <pre><code>&lt;ParentElement&gt;
      &lt;FirstChildElement&gt;someValue&lt;/FirstChildElement&gt;        
      &lt;ThirdChildElement&gt;someValue&lt;/ThirdChildElement&gt;
      &lt;SecondChildElement&gt;someValue&lt;/SecondChildElement&gt;
  &lt;/ParentElement&gt;
  </code></pre>
  
  <p>If I validated it I'd get an error because the child elements are out of order.  </p>
  
  <p>Can I make some change to the XSD so validation only cares if the elements exist, and that they're under the correct parent, but not what order they're in?</p>