XLink Tree Demo Application
This is a tree browser to demonstrate several functions of XLink and XPointer. As it is written in Java, it can be executed on many platforms. This application uses XLink Processor(XLiP) to process XLink and XPointer.
Let's get started
To run this demo application, you need to take following steps.
- install JDK 1.2.2(or later) in your computer, if you have not installed it.
- download the software (which includes the demo application) from the download page
- execute the demo application:
- - double click "treedemo.jar" (Windows Users) / execute the command "java -jar treedemo.jar" (Others)
HOW TO START
To browse an XML document, you need to take following steps.
- press "open a file" button in the window of the application
- select a file to open
- press the "OK" button
Then you will see a tree root node of the document. You can see sub nodes of the root node by double clicking the root node.
HOW TO TRAVERSE
This application clearly shows starting resources by changing the icon color of the node to red. Note that the icon color of the starting resource is always red whether the actuate attribute is "onRequest" or not.
There are two ways to start traversal.
- select the starting resource and click the "traversal" button
- place the mouse cursor on the starting resource and click your right mouse button
PROCEDURES TO SELECT THE ENDING RESOURCE
If you start simple link's traversal, the application directly jumps to the ending resource. Otherwise, following steps occurs.
If traversal starts, you will see the dialog which shows a list of arcs and radio buttons. You can start traversal from the list. The radio buttons indicate the type of show.
Then if you select one of the items in the list, select the show type and press the "traversal" button, you will see another dialog which shows the locators list which has information about each ending resource.
After you select one of the items in the list, the traversal action to the selected ending resource is actuated.
NOTE: Characters displayed in both lists indicate the value of the related title attribute.
NOTE: This simple procedure only exist to show the concept of XLink. It is easy to customize these actions more intuitively.
Pointer Addressing
This application provides XPointer addressing functions. After browsing a XML documents, press "Search with XPointer...". Then you will see a dialog box which has one input field. Input XPointer syntax in the field and press "OK" button. You will see the addressing result as highlighting them.
Known Bugs
Embed operation fails if once an inserted node has been expanded before the operation.
How to get this program
You must read LICENSE. If you accept the license agreement, please go to Download.