Validation XML with XSD

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
Fabrice.geay
Posts: 11
Joined: Tue Dec 12, 2017 2:06 am

Validation XML with XSD

Post by Fabrice.geay » Wed Mar 03, 2021 12:27 am

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>
Attachments
Controle_CLC_xml.xsd.doc
(26.57 KiB) Downloaded 97 times
FluxXM_cb70b3bc-1715-4f2a-80f8-6a68790cfeeb.XML.DOC
(9.62 KiB) Downloaded 95 times
Best regard

Fabrice GEAY

User avatar
Fabrice.geay
Posts: 11
Joined: Tue Dec 12, 2017 2:06 am

Re: Validation XML with XSD

Post by Fabrice.geay » Wed Mar 03, 2021 1:16 am

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.
Best regard

Fabrice GEAY

Post Reply