Adding a message definition for a DTD

You can add a message definition by importing a Document Type Definition (DTD). When you add a message definition, Message Bridge binds the root element to the DTD. To add a message definition, you must know the root elements of the DTD you want to import.

StepsTo add a message definition for a DTD

  1. In the Definitions panel, select a Schema Group. Select Default Group if no others exist. See Schema groups for information on new schema groups.

  2. Go to File | New | Message Definition. The Add Message Schema dialog box opens.

  3. In the Metadata Source drop-down list, use the default selection, DTD Importer. In the Files of Type drop-down list, use the default selection, Document Type Definition (DTD).

  4. Enter the name of the DTD you want to import. You can change directories by clicking the Down arrow in the Look In drop-down list. Navigate to the directory where the DTD file resides and select the file.

  5. Click OK. The Select Root Element dialog box opens.

    NoteIf your DTD has namespaces, see Defining namespaces in message definitions that use DTDs. Elements with colons signify namespaces.

  6. Select a root element from the DTD that corresponds to the document for this message definition. Click OK.

    NoteTo find the root element of the DTD you are importing, review the DTD file you imported in a text editor.

    The DTD you imported appears in the Definitions panel, and a graphical representation of the DTD appears in the Message Bridge GUI. The representation shows the element you selected as root and its children, as defined in the DTD.

    You can now continue defining your message by: