title: Invalid content was found starting with element 'elementName'. No child element is expected at this point
body: <p>I'm working with xml and I'm using xsd to validate my xml file. My xsd and xml file is too long and I can give you a part of them. </p>
  
  <p><strong>XSD file:</strong></p>
  
  <pre><code>...
  &lt;xs:complexType name="BankType"&gt;
      &lt;xs:choice&gt;
          &lt;xs:element name="Code" type="codeType" minOccurs="1" maxOccurs="1" /&gt;
          &lt;xs:element name="NewCode" type="codeType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="SWIFTBIC" type="swiftType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="Name" type="nameType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="CorAccount" type="accountType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="SubCorAccount" type="accountType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="TaxNumber" type="taxNumberType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="Address" type="addressType" minOccurs="0" maxOccurs="1" /&gt;
          &lt;xs:element name="PhoneNumber" type="phoneNoType" minOccurs="0" maxOccurs="unbounded" /&gt;
          &lt;xs:element name="FaxNumber" type="faxNumberType" minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:choice&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="OperationsForBankType"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="Method" type="methodType" minOccurs="1" maxOccurs="1" /&gt;
          &lt;xs:element name="Bank" type="BankType" minOccurs="0" maxOccurs="unbounded" /&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  ...
  </code></pre>
  
  <p><strong>XML file:</strong></p>
  
  <pre><code>...
  &lt;Operations&gt;
    &lt;Method&gt;ADD&lt;/Method&gt;
    &lt;Bank&gt;
      &lt;Code&gt;111111&lt;/Code&gt;
      &lt;SWIFTBIC&gt;AAAAAAAA&lt;/SWIFTBIC&gt;
      &lt;Name&gt;ASDFGHJKL&lt;/Name&gt;
      &lt;CorAccount&gt;1111111111111111111111111111&lt;/CorAccount&gt;
      &lt;SubCorAccount&gt;1111111111111111111111111111&lt;/SubCorAccount&gt;
      &lt;TaxNumber&gt;1700792251&lt;/TaxNumber&gt;
      &lt;Address&gt;Bakı şəhəri, Nizami küçəsi, 70&lt;/Address&gt;
      &lt;PhoneNumber&gt;+994125981107&lt;/PhoneNumber&gt;
      &lt;FaxNumber&gt;+994125980307&lt;/FaxNumber&gt;
    &lt;/Bank&gt;
    ...
  </code></pre>
  
  <p>And the error was <code>Reason: cvc-complex-type.2.4.d: Invalid content was found starting with element 'SWIFTBIC'. No child element is expected at this point.</code> How can I solve it?</p>
  
  <p><strong>EDIT:</strong> I used <code>xs:sequence</code> before but the order of tags might be changeable that's why I couldnot use it. All elements can be occur, can be empty, can be doesn't occur..</p>