Page 1 of 1

Validation XML with XSD

Posted: Wed Mar 03, 2021 12:27 am
by Fabrice.geay
Hi,


I need to control a xml with a XSD, i use the XMLBindFileService with SCHEMA(*YES). I got an error in the XML but LI does not found any fault.

In attachment, the xml (FluxXM_cb70b3bc-1715-4f2a-80f8-6a68790cfeeb.XML.DOC) that needs to be controle and the xsd (Controle_CLC_xml.xsd.doc) to made control.

In the xml, the error is :
<urn1:Prenom_Altere>FABIEN</urn1:Prenom_Altere>

Re: Validation XML with XSD

Posted: Wed Mar 03, 2021 1:16 am
by Fabrice.geay
If I use JAVA and not LANSA INTEGRATOR, i have the exception :

Exception: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"urn:amc:med":Prenom_Altere}'. One of '{"urn:amc:med":Prenom}' is expected.