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
Cvc-complex-type.2.4.a: Invalid Content Was Found Starting With Element 'ClientData'. One Of '
{"http://www.myTest/xml/Import/user/data":ClientData}
' Is Expected., Line '2', Column '27'.
This is my XML File
<?xml version="1.0" encoding="UTF-8"?>
<prefix:UteXmlComunicazione xmlns:prefix="http://www.myTest/xml/Import/user/data">
<ClientData>
<client>
<pfPg>PF</pfPg>
<Family>Alex White</Family>
<name></name>
</client>
<vendor>
<Timeperiod>
<NumberofFactor></NumberofFactor>
<year>2018</year>
</Timeperiod>
<Address>
<Address1>
<top>Via</top>
<street>DANTE</street>
<number>108</number>
<Zipcode>20776</Zipcode>
<Code>033032</Code>
</Address1>
</Address>
</vendor>
</ClientData>
</prefix:UteXmlComunicazione>
and this is the XSD
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.myTest/xml/Import/user/data" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="UteXmlComunicazione">
<xs:complexType>
<xs:sequence>
<xs:element name="ClientData" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="client" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="pfPg"/>
<xs:element type="xs:string" name="Family"/>
<xs:element type="xs:string" name="name"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="vendor" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="TimePeriod" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:short" name="year"/>
<xs:element type="xs:byte" name="NumberofFactor"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Address" minOccurs="0">
I have no idea what is the issue...Could you please let me know what is the problem?