Module: Editor
Version: 19.06 +
Description
The formula 'XsdMessages' returns the error-messages that result when an xml string is validated according to an xsd schema. If the xml is valid, it returns an empty string.
Parameters
Xsd file: The full path to an Xsd file that is used to validate the xml string.
Xml string: The Xml string to be validated
Namespace: The namespace of the Xml. If omitted (that is, an empty string is defined), the (default) target namespace of the Xsd file is used. This behavior is often sufficient.
Example
Description
Suppose you want to receive the error-mesages when validating this xml string:
4,5
against this Xsd file, which is located in 'C:\temp\check.xsd':
Values parameters
Xsd file:
C:\temp\check.xsd
Xml string:
4,5
Namespace:
http://www.ActuIT.nl/Futurama/WebService/Faculteit or empty string
Result
Result:
If the Xml string is not properly-structured xml (for example, closing tag is missing), the formula will return the message: “The XML is not well formed and cannot be validated.”
External Links
- W3Schools: XML Schema Tutorial
Feedback
If you have any questions about this subject or if you want to provide us feedback please send us an e-mail.