ui\TreeViewer.java - Apache Xerves UI Sample

Q

What is the ui\TreeViewer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 installed.

✍: FYIcenter

A

ui\TreeViewer.java provided in the Apache Xerces package presents a GUI (Graphical User Interface) for you to view the tree structure of XML documents.

Here is how to run ui\TreeViewer.java, if you have Apache Xerces 2.11.0 installed:

>\fyicenter\jdk-1.8.0\bin\java 
   -cp \fyicenter\xerces-2_11_0\xercesSamples.jar ui.TreeViewer -h
   
usage: java ui.TreeViewer (options) uri ...

uri        URI of an XML document. Local file path is acceptable too.

options:
  -p name  Specify DOM parser class by name.
           Default parser: org.apache.xerces.parsers.DOMParser
  -h       This help screen.  

 

Using Apache Xerces Other Sample Programs

⇒⇒FAQ for Apache Xerces XML Parser

2017-09-20, 259👍, 0💬