Introduction

 

There are two new samples to test and demonstrate the new DOM2 Transversal implementation:

Caveats

 

Note: Make sure that XML4J and a JDK are loaded on your computer before running any of the sample parsers.

XML4J EA2 Note: Running the sample applications require that you have already loaded the XML4J EA2 software on your computer.

Java Note: Running the sample parsers require that your computer is setup with a JDK. If you do not already have a JDK already on your computer down load one from Sun's Java website: http://java.sun.com or from IBM's website http://www.ibm.com/developer/java/ where you can find an "Enhanced Windows JDK" that is optimized for the Windows platform. The sample applications described in the following pages support Java 1 - JDK 1.1.6. 1.1.7, 1.1.8 or Java 2 - JDK 1.2.2.

UNIX Note: Command lines in the pages linked below use the Windows path separator ';' (semicolon) and directory separator '\' (backslash)..
On UNIX, use the ':' (colon) character to separate the JAR files in the classpath, and replace Windows directory separator '\' (backslash) with '/' (forward slash)
.

IteratorView

 

The IteratorView is an interactive UI sample that displays the DOM tree. It shows the progress of the iteration by moving the selection within the DOM tree. Buttons act as a control panel, allowing the user to interactively iterate through the tree,  remove nodes, add nodes, and view the results immediately in the tree.

The IteratorView uses an example filter, NameNodeFilter, that can be controlled from the UI and a DOMTreeFull class that displays the full DOM tree with all the nodes.

IteratorView page

TreeWalkerView

 

The TreeWalkerviewView is an interactive UI sample that displays the DOM tree. It show the progress of the tree traversal by moving the selection within the DOM tree. Buttons act as a control panel, allowing the user to interactively traverse the tree,  remove nodes, add nodes, and view the results immediately in the tree.

The TreeWalkerviewView uses an example filter, NameNodeFilter, that can be controlled from the UI and a DOMTreeFull class that displays the full DOM tree with all the nodes.

TreeWalkerView page