Validating against xsd

XML XSD Schema has the power of possibility to provide the standard structure for XML attributes and elements, through its support for namespaces and datatypes.

You have to validate your XML file to make sure it fits to your application's needs to prevent any exception in your code.

If the JSON instance document is empty, the assignment of a JSON schema to the instance will automatically fill the JSON instance with sample data based on the schema. Validation results are displayed in the Messages window.

The other compliant products will exhibit similar behavior.

If we look at the sibling declarations of xs:element (with name="a") and xs:any, then that is an example of UPA violation in XSD 1.0 language (it's not a UPA violation in XSD 1.1, as we'll discuss later).

This tells XMLBlueprint to validate the XML Document against XML Schema "book.xsd".

In this case, the XML Schema is to be found in the same folder as the XML Document.

Leave a Reply