CDF Editor

CDF Editor is a Java application to edit Channel Description Format (CDF) files. User loads a CDF file and edit the channels and items.

How to run

First, you need to have Java 1.1 installed in your PATH environment variable. You should specify a class path that include packages com.ibm.xml.parser and com.ibm.xml.cdfedit. With a standard installation, these packages reside in the jar file named xml4j.jar. If they are located in a different place from xml4j.jar, you should replace it accordingly.

CDF Editor is executed by the following command:
 jre -cp 'xml4j.jar' com.ibm.xml.cdfedit.CdfEditor [cdf-filename]

If the cdf-filename is specified, CDFEditor parses it and displays its structure. When cdf-filename is not specified, user can specify the file by using File Dialog Window, or scan a site to create a CDF file by using siteoutliner, which is also sample application for Java for XML.

Menu Functions

When a CDF file is loaded, CDF editor shows a top node of the file. By clicking left button on the node, you can see the children node of the it. If the parent node is clicked again, the children is hidden.

CDF Editor provides the following function from Menu bar.
Function Description
Open Specify CDF file with file dialog.
Scan Call siteoutliner. The output from it is sent to this editor.
Save Save CDF file with file dialog. File type ".cdf" is recommended.
Quit Quit this program

Edit Functions

You can edit the channels and items. A popup menu is appeared. by clicking right mouse button on the channel or item which you want to edit. The following functions are currently available.

Function Description
Cut Cut the channel/item and save to cut buffer.
Delete Delete the channel/item without saving cut buffer.
Copy Copy the item to cut buffer (item only).
Paste as last child Paste from cut buffer and add it as last child. Buffer is cleared (channel only).
Paste before Paste from cut buffer and add it before the element. Buffer is cleared.
Paste after Paste from cut buffer and add it after the element. Buffer is cleared.
Edit Edit the channel/item.
New channel Create a new channel and add it as a last child
New item Create a new item and add it as a last child

Enjoy it!


Go to README
Last modified: Fri Feb 27 10:17:13 JST 1998