Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (454)
Graphics (53)
I/O (28)
IDE (2)
JAR Tools (45)
JavaBeans (16)
JDBC (86)
JDK (33)
JSP (20)
Logging (89)
Mail (54)
Messaging (8)
Network (103)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (11)
SOAP (24)
Testing (55)
Web (24)
XML (287)
Other Resources:
View XML Tree Structure with ui\TreeViewer.java
How to view the tree Stucture of an XML document with the ui\TreeViewer.java provided in the Apache Xerces package?
✍: FYIcenter
If you want to view the tree Stucture of an XML document,
you can try the ui\TreeViewer.java provided in the Apache Xerces package.
Compile and run ui\TreeViewer.java, if you have Apache Xerces 2.11.0 installed:
\fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\javac -cp ..\xercesImpl.jar;..\xercesSamples.jar ui\TreeViewer.java \fyicenter\xerces-2_11_0\samples>\fyicenter\jdk-1.8.0\bin\java -cp .;..\xercesImpl.jar;..\xercesSamples.jar;..\xml-apis.jar ui.TreeViewer User.xml User.xml: START createUI:User.xml START refreshUI:User.xml START getRoot:User.xml START readXMLFileUser.xml END readXMLFileUser.xml END refreshUI:User.xml END createUI:User.xml
You see a window displayed with the tree structure of the User.xml file:
2017-09-12, 698👍, 0💬
Popular Posts:
Joda-Time provides a quality replacement for the Java date and time classes. The design allows for m...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
Mailer Tag library, Release 1.1, is used to send e-mail. JAR File Size and Download Location: File n...
Woodstox, Release 3.2.8 is a high-performance validating namespace-aware StAX-compliant (JSR-173) Op...