Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question XML Load - Use constraint in XSD

More
24 Aug 2015 17:51 #1 by David
David created the topic: XML Load - Use constraint in XSD
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
Nicolas Verscheure replied the topic: XML Load - Use constraint in XSD
AFAIK, it is not possible.
More
25 Aug 2015 11:05 #3 by Thomas BLETON
Thomas BLETON replied the 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
Aminatou replied the 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
Thomas BLETON replied the 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.