title: XSD error: cvc-complex-type.2.4.a: Invalid Content Was Found Starting With Element
body: <p>I have an XML file that need to be validate with the XSD file, but when I got this error when I want to validate my XML with XSD file</p>
  
  <blockquote>
    <p>Cvc-complex-type.2.4.a: Invalid Content Was Found Starting With Element 'ClientData'. One Of 
     '<code>{"http://www.myTest/xml/Import/user/data":ClientData}</code>' Is Expected., Line '2', Column '27'.</p>
  </blockquote>
  
  <p>This is my XML File </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;prefix:UteXmlComunicazione xmlns:prefix="http://www.myTest/xml/Import/user/data"&gt;
      &lt;ClientData&gt;
          &lt;client&gt;
              &lt;pfPg&gt;PF&lt;/pfPg&gt;
              &lt;Family&gt;Alex White&lt;/Family&gt;
              &lt;name&gt;&lt;/name&gt;
          &lt;/client&gt;
          &lt;vendor&gt;
              &lt;Timeperiod&gt;
                  &lt;NumberofFactor&gt;&lt;/NumberofFactor&gt;
                  &lt;year&gt;2018&lt;/year&gt;
              &lt;/Timeperiod&gt;
              &lt;Address&gt;
                  &lt;Address1&gt;
                      &lt;top&gt;Via&lt;/top&gt;
                      &lt;street&gt;DANTE&lt;/street&gt;
                      &lt;number&gt;108&lt;/number&gt;
                      &lt;Zipcode&gt;20776&lt;/Zipcode&gt;
                      &lt;Code&gt;033032&lt;/Code&gt;
                  &lt;/Address1&gt;
              &lt;/Address&gt;
          &lt;/vendor&gt;
      &lt;/ClientData&gt;
  &lt;/prefix:UteXmlComunicazione&gt;
  </code></pre>
  
  <p>and this is the XSD </p>
  
  <pre><code>&lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.myTest/xml/Import/user/data" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="UteXmlComunicazione"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name="ClientData" minOccurs="0"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                &lt;xs:element name="client" minOccurs="0"&gt;
                  &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element type="xs:string" name="pfPg"/&gt;
                      &lt;xs:element type="xs:string" name="Family"/&gt;
                      &lt;xs:element type="xs:string" name="name"/&gt;
                    &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                &lt;/xs:element&gt;
                &lt;xs:element name="vendor" minOccurs="0"&gt;
                  &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element name="TimePeriod" minOccurs="0"&gt;
                        &lt;xs:complexType&gt;
                          &lt;xs:sequence&gt;
                            &lt;xs:element type="xs:short" name="year"/&gt;
                            &lt;xs:element type="xs:byte" name="NumberofFactor"/&gt;
                          &lt;/xs:sequence&gt;
                        &lt;/xs:complexType&gt;
                      &lt;/xs:element&gt;
                      &lt;xs:element name="Address" minOccurs="0"&gt;
  </code></pre>
  
  <p>I have no idea what is the issue...Could you please let me know what is the problem?</p>