Demo: XML Viewer Applet
This is a simple Java Applet that uses the Java XML Parser to display an XML document in a tree view. The applet brings up another secondary window to do this. Type in the URL for an XML file that you would like to parse, then press the button labelled "Parse". The results will be displayed in the area below. Click on the plus/minus boxes to hide and show the children of that node. Park the mouse over nodes that have attributes to view the attributes in a yellow pop-up window.
Note: Over the Web, you will be limited to XML files in the same folder due to Java security limitations. Download the XML Parser package if you want to try other XML files.
Try the following examples also:
You can double-click on any node to zoom in on just that node and its children. You can undo this action by selecting the desired view from the drop-down list box just below the URL entry field, or by selecting the top node and pressing the left arrow key.
You can also navigate the tree using the following special keys (once you have clicked inside the tree view to get the keyboard focus):