Skip to Content

In this Blog, I would like to share the way how you can handle the Message Options for Document Type Definition (DTD) files in External Definition.

For the Document Type Defintion (DTD) Format we can interpret the document as message schema by selection options in Messages List Box as below

 

one

 

table

 

1) Using DOCTYPE Statement

two

Here we have the file TZC1.dtd that is imported into External Definition using category as DTD and the Message Mode as Message from First ELEMENT. In this DTD file, we can see that all elements are randomly ordered. Though the root element of the given DTD file is TZC1, We got the Message Name as TIME_LOCATION in the Messages tab in External Definition.

 

 

In order to avoid the conflict and confusion, we need to append the DOCTYPE statement to the root element to the file TZC1.dtd as

DTD Declarations

]>

where TZC1 is the root element of the given document.

 

 

And now we can get the corresponding root element TZC1 as Messages in the Messages tab in External Definition.

 

Rules:

1) The keyword DOCTYPE must be followed by the name of the root element in the XML document.

2) The keyword DOCTYPE must be in upper case

2) Using of “From the First ELEMENT”

 

This Feature can be useful only when the limited structure of elements alone are required in the DTD file can be assigned to the Message Type in the Message tab of External Definition.

 

ff

 

In this case Only ORIGIN_CITY, ORIGIN_TIME, ORIGIN_DATE, DESTINATION_CITY elements alone can be assigned to the Message Type TIME_LOCATION that acts as a root element in the Messages tab of External Definition.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply