Generation of XML schema

You can generate a schema file from a message model.

XML schema is a standard way of describing complex message models.

You can generate an XML schema file for an individual DFDL schema file in an application or library, an individual message definition file in a message set, or for all message definition files in a message set.

Generating from DFDL

A DFDL schema file is a valid XML schema file, so the generation process consists of removing the DFDL annotations from the DFDL schema. The result is a pure W3C XML Schema file.

Generating from message sets

If any XML physical formats have been defined for the message set, you can select which of these XML wire formats are to be applied.
  • If an XML format has been selected, the physical format information is also included.
  • If no XML format is selected, the generated schema file contains information about only the logical message model.
You can choose whether 'strict' or 'lax' schema generation is to be performed. This is necessary because the logical extensions to the XML schema model provided by the message definition file cannot be represented in XML schema. So you can choose either to generate a schema with more strict or more lax validation than the equivalent validation performed by the message model parser. The affected model extensions are:
  • Content Validation = open
  • Content Validation = open defined
  • Composition = unordered set