Choose "Open file..." from the File|Open menu. A file chooser appears; select the file you want to open and click "Open". Please note that the DTD file should be listed as "All JBuilder files" type and should have a non-default icon. If not, check the installation; perhaps Xeddy has not been installed correctly. Click here for more details about the installation.
Choose "New file..." from the File menu. The Wizard dialog will appear.

Edit the Created file field, if needed, choose a XML
file if you want to generate the DTD document from XML
and check the CheckBox below.
(The CheckBox
specifies
if you want to create the DTD from a given XML).

There are two ways of doing this. The first one is similar to the previous. Invoke the popup menu in declaration list and select Add <!ATTLIST menu item, fill in the attribute's name and click OK.

A better way is the following one.
Select an element in declaration list
and click right button on Root declaration
in declaration structure.
A popup menu will appear. Select the menu
item
Add Custom Attribute , fill in the attribute's name and click
OK.
The system adds a new attribute declaration in
the document and refreshes declaration structure.

You can also apply an already declared attribute
declaration on a selected element declaration. Invoke the popup menu and select
the menu item Add Attribute . The submenu will appear after.
The submenu contains all attribute declarations in
the DTD.
Now you can select the attribute declaration which you want to
apply on selected element.
Note: Menu items are constructed with element
declaration's name and attribute declaration's name.

Select the place in the declaration structure where you want to add the element and invoke the popup menu. Select the menu item Add Custom Element, fill in the name of the new element and click OK.

You can also add an already declared element declaration. Invoke
the popup menu and select the menu item
Add Element. The popup submenu with all declared elements will appear.
Select the element which you want to add.



