I need your help :'(
I have a problem with XSD validation, It returns error with Unexpected elements. But i want to allow and skip any unexpected elements. I try to use <xs:any>
but its not allowed under <xs:all>
and <xs:element ref
doesn't work, I have no idea how to fix it :
<xs:complexType>
<xs:all>
<xs:any processContents="lax" maxOccurs="unbounded" minOccurs="0" />
<xs:element name="id" type="xs:integer" />
<xs:element name="lastname" type="xs:string" />
<xs:element name="firstname" type="xs:string" />
<xs:element ref="adress" />
<xs:element ref="phone" />
</xs:all>
It returns error for example when I got unexpected elements "gender". DO you know which tag can be help ? or any solutions. Thanks in advance guys.