Generating XML schema

Before you start:

To complete this task, you must have completed the following tasks:

Tip: You should replace any deprecated constructs before generating XML schema representations of your models.

This task topic describes how to generate XML schema from a message definition file:

  1. Switch to the Broker Application Development perspective.
  2. Select the message definition file (*.msxd file extension) from which you want to generate XML schema.
  3. From the workbench menu, click File > New > XML Schema to open the New XML Schema wizard. Alternatively, right-click the message definition file from which you want to generate XML schema then click New > XML Schema on the pop-up menu.
  4. The message definition file that you selected is highlighted. If this is not the message definition file from which you want to generate XML schema, select the correct message definition file.
  5. Optional: From the drop down list, at the bottom of the New XML Schema page, click the XML Wire Format that you want to use to generate XML schema.
    Tip: You must have previously added one or more XML Wire Format layers to a message set if you want to use an XML physical format when you generate XML schema. For further information see Adding an XML wire format.
  6. If you do not want strict generation of XML schema, clear the Strict generation check box at the bottom of the New XML Schema page. By default, this check box is selected.
    Tip: For further information on strict and lax generation of XML schema, see Generate XML Schema.
  7. Click Next to move to the next page of the wizard.
  8. Select a destination folder for the XML schema.
    Tip: The folder that you select must be within the project containing the message definition file from which you are generating the documentation. If a folder is not selected, the generated XML schema is placed in the project folder by default. Note that the contents of the folder that you select are overwritten.
  9. Create a new folder for the documentation by carrying out the following steps:
    1. Click the location for the new folder in the project hierarchy.
    2. Click Create New Folder and type a name for the new folder.
    3. Click OK.
  10. Click Finish. Your XML schema is generated.
  11. Use the Resource Navigator to locate the destination folder that you specified for the generated XML schema. This folder contains a file with exactly the same name as your message definition file with the file extension *.xsd. This is the generated XML schema. To view this file, right-click it then click Open on the pop-up menu. This launches the schema editor.
    Tip: The Design, Source or Graph tabs located in bottom left corner of the schema editor provide you with different views of generated XML schema.
Related concepts
The message model
Generate model representations
Related tasks
Working with a message set
Working with a message definition file
Working with message model objects
Working with a message category file
Related reference
WSDL generation