title: XML Schema order of elements
body: <p>In my XSD, I want to be able to specify that the order of the elements doesn't matter. This is what I have:</p>
  
  <pre><code>&lt;xs:element name="ADT_A08_231_GLO_DEF"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element minOccurs="1" maxOccurs="1" name="EVN_EventTypeSegment" type="xs:string" /&gt;
        &lt;xs:element minOccurs="1" maxOccurs="1" name="PID_PatientIdentificationSegment" type="xs:string" /&gt;
        &lt;xs:element minOccurs="0" maxOccurs="1" name="PD1_PatientAdditionalDemographicSegment" type="xs:string" /&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>How can I make it so that the EVN and PID element can occur random (first EVN then PID or first PID element and then the EVN element) in the XML file?</p>
  
  <pre><code>&lt;EVN_EventTypeSegment&gt;Test&lt;/EVN_EventTypeSegment&gt;
  &lt;PID_PatientIdentificationSegment&gt;PIDTest&lt;/PID_PatientIdentificationSegment&gt;
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>&lt;PID_PatientIdentificationSegment&gt;PIDTest&lt;/PID_PatientIdentificationSegment&gt;
  &lt;EVN_EventTypeSegment&gt;Test&lt;/EVN_EventTypeSegment&gt;
  </code></pre>