How to open DTD file

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.

How to create a DTD file

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).

How to create an element declaration

It is very simple. Invoke the popup menu in declaration list, select the Add <!ELEMENT menu item. The Simple text field dialog will appear. Please, fill the name of the created element and click OK.

How to create an attribute declaration

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.

How to add an element into the element's content model

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.

How to create declaration group in a content model

You can create a declaration group in an element's content model. Select a declaration in declaration structure, invoke popup menu and select Enclose (Elm,...) or Enclose (Elm|...). Your choice depends on the operator which you want to use in the created group.

How to change properties of a selected declaration

All the properties of a selected declaration as Name, Type, used operator etc.. are visible in a declaration inspector If you want to edit the property, select it in the inspector and type (or select) a new value. For example, if you want to change the type of an attribute, select the attribute in a declaration dist or declaration structure. The inspector shows all editable properties of the declaration now. Select the property Type and choose the right type of attribute.

 

How to sort declarations in declaration list

You can change the ordering in a declaration list as you prefer. Select the menu item Tool | IDE Options .... The Option dialog will appear. Select SDEX tab.
There are three options for ordering. Select the type of ordering which want to use on declaration list and click OK. The chosen ordering will be applied after.