Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question XML Load - Use constraint in XSD

More
24 Aug 2015 17:51 #1 by David
XML Load - Use constraint in XSD was created by David
Hello,

I'm working on a mapping which basically take data from XML File and load to database.

In the XSD file, I defined some validation rule : for instance the content of a field needs to be in a closed list (<xsd:enumeration>).
While launching the Stambia process, even if the XML sample is not validated by the XSD, the load of the file is done.

Do you know how can I use advantage of XSD validation, to avoid implementation of all validation rule in Stambia ?

Thanks a lot for your help,
Best regards,
David
More
24 Aug 2015 18:20 #2 by Nicolas Verscheure
Replied by Nicolas Verscheure on topic XML Load - Use constraint in XSD
AFAIK, it is not possible.
More
25 Aug 2015 11:05 #3 by Thomas BLETON
Replied by Thomas BLETON on topic XML Load - Use constraint in XSD
Hi,
Stambia has no standard feature for Xsd validation.
However this can be achieved with a Scripting action.
Please have a look at the attached example.

This message has an attachment file.
Please log in or register to see it.

  • Aminatou
  • Aminatou's Avatar
30 May 2017 12:03 #4 by Aminatou
Replied by Aminatou on topic XML Load - Use constraint in XSD
Bonjour,

Thomas j'ai essayé l'exemple attaché.

A quoi correspond "List Files.deliv" ?

Merci
More
30 May 2017 15:17 #5 by Thomas BLETON
Replied by Thomas BLETON on topic XML Load - Use constraint in XSD
C'est le nom du fichier Xml que l'on cherche à valider dans l'exemple.
Ce chemin est bien sûr à remplacer par votre propre fichier Xml.