Importing from XML DTD

Before you start:

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

Also, before you begin this task, you should note the following points:

Note that the extension to the file must be .dtd in lower case.

The following steps cover both creating a completely new message definition file and overwriting the contents of an existing file.

To create a message definition from an XML DTD:

  1. Switch to the Broker Application Development perspective.
  2. Open the New Message Definition File wizard by clicking File > New > Message Definition File from the workbench menu.
  3. In the displayed list of options, click XML DTD file to select it then click Next.
  4. In the displayed list of workbench files, click the XML DTD file that you want to import then click Next.
  5. In the list of message sets shown under Message sets:, click the target message set for the message definition file that you are creating. The Message definition file name field is automatically filled in with a default file name based on the name of the file that you are importing. If required, you can change the displayed default file name to a new name of your choice.
  6. Optional: If you want to replace the contents of an existing message definition file:
    1. Type the name of the existing file in the Message definition file name field.
    2. Select the Overwrite the existing file contents without warning check box. The existing file is overwritten without a warning being displayed.
  7. Click Next. Your XML DTD is converted into XML schema and validated.
  8. In the displayed list of global elements, select the check boxes for the global elements from which you want to create messages. Use the Select All and Deselect All buttons at the bottom of the pane to select all global elements in the list or no global elements in the list.
  9. Click Finish.

The message definition file is created from the XML DTD and is opened in the Message Definition editor so that you can check the imported information and make any required changes. While you are checking the newly created message definition file, review any messages that appear in the workbench task list to see whether you need to make any corrections to resolve errors or warnings relating to the new file.

Related concepts
Ways to create message definitions
Import from other model representations to create message definitions
Related tasks
Working with a message set project
Importing from the command line
Related reference
Import formats