Running TreeViewer

TreeViewer displays the input file in a graphical tree based interface. This sample highlights the error handling capabilities of the parser, demonstrating how the parser can recover from many types of common errors. 

Source code:

 

To run the TreeViewer, type the following all on one command line:

    jre -cp xml4j.jar;xml4jSamples.jar
        ui.TreeViewer data\personal.xml

Return to Samples