filler30.gif (46 octets) This tutorial will show you how to modify an existing DTD.


Open a DTD document.
Select menu File Open DTD or press the File Open Icon open.gif (140 octets) while the 'DTD Schema' tab is selected.
An Open dialog box ask you for a file name. Select the DTD file name you want.

Open a DTD URL document.
Select menu File Open DTD URL.
An Input dialog box ask you for a URL name. Enter a valid URL and press OK. Remember that modifications must be save on local system; can not save at the source.

A DTD is also open when a XML file make a reference to a DTD in is System Identifier of the DOCTYPE declaration. See Open a XML document for more information.

In this tutorial, we will change the directory folder by selecting the 'samples' folder. Select the Email.dtd file. Press the Open button to load it in the tree.


Delete an item in a DTD section.
Deleting an item will erase this item from your tree. If you want to delete an item and keep a copy of it on the clipboard, use the menu Edit Cut command.
Select a section and expand it. Select the item in this section that you want to delete.
Select menu Edit Delete or press the delete icon delete.gif (870 octets)

In this tutorial, we will select the Entity(ies) folder and double click on it or press the right arrow on the keyboard. This action will expand the folder.
Select the ingo leaf.
Select menu Edit Delete or press the delete icon delete.gif (870 octets)


Cut an item in a DTD section.
When you cut an item in a section, you delete it from the tree and place a copy of it on the clipboard. If you want to delete an item without keeping a copy, use the menu Edit Delete command.
Select a section and expand it. Select the item in this section that you want to cut.
Select menu Edit Cut or press the cut icon cut.gif (130 octets)

In this tutorial, we will select the Entity(ies) folder and double click on it or press the right arrow on the keyboard. This action will expand the folder.
Select the henning leaf.
Select menu Edit Cut or press the cut icon cut.gif (130 octets)


Paste an item in a DTD section.
When you paste an item in a section, you retrieve what was previously save on the clipboard and place a copy of it in the tree.
Select a section and expand it. Select the item in this section after which the copy will be inserted or select the section and the item will be inserted at the end of all items in this section.
Select menu Edit Paste or press the paste icon paste.gif (159 octets)

Edit the new item as you need.

In this tutorial, we will select the Entity(ies) folder and double click on it or press the right arrow on the keyboard. This action will expand the folder.
Select the abbrev leaf.
Select menu Edit Paste or press the paste icon paste.gif (159 octets)

The tree now looks like this image.

tutor7.gif (2687 octets)

We have a new Entity named 'Copy of henning'. Change the Name to 'salesmail' and the Text to 'sales@corp.com'. Press the Create button.


Copy an item in a DTD section.
When you copy an item in a section, you place a copy of it on the clipboard.
Select a section and expand it. Select the item in this section that you want to copy.
Select menu Edit Copy or press the copy icon copy.gif (145 octets)

In this tutorial, we will select the Notation(s) folder and double click on it or press the right arrow on the keyboard. This action will expand the folder.
Select the gif leaf.
Select menu Edit Copy or press the copy icon  copy.gif (145 octets)

Select menu Edit Paste or press the paste icon paste.gif (159 octets)
The tree now looks like this image.


tutor8.gif (2726 octets)

We have a new Notation named 'Copy of gif'. Change the Name to 'bmp' and the System Id. to 'lview.exe'. Press the Create button.

It is a good idea at this stage to save our work.

Select menu File Save DTD or press the save icon save.gif (138 octets) while the 'DTD Schema' tab is selected.

Open a XML document.
Select menu File Open XML or press the File Open Icon open.gif (140 octets) while the 'XML Document' tab is selected.
An Open dialog box ask you for a file name. Select the XML file name you want.

Open a XML URL document.
Select menu File Open XML URL.
An Input dialog box ask you for a URL name. Enter a valid URL and press OK. Remember that modifications must be save on local system; can not save at the source.

Delete an item in a XML section.
Deleting an item will erase this item from your tree.
Select a section and expand it. Select the item in this section that you want to delete.
Select menu Edit Delete or press the delete icon delete.gif (870 octets)

Save a XML document.
Select menu File Save XML or press the save icon save.gif (138 octets) while the 'XML Document' tab is selected.



© 1997-98   9036-6733 Québec Inc. All rights reserved.