IBM alphaWorks
E-Mail Site Map
Search

alphaWorks
Internet Access Required Internet Access Required alphaWorks Press and Awards Information about alphaWorks Internet Access Required XML Tutorials and Papers
XML Viewer                                                                                                               | Overview | FAQ | Requirements | Discussion |

OVERVIEW
XML Viewer for Java is a Java application that displays any well-formed XML document. You can traverse the document's hierarchy using the tree views, find out the attributes of a particular node in the hierarchy and view the source of the XML and associated DTD files. You can also view the source of a selected node in the XML source view and the definition of the node in the DTD source view.

FAQ
  1. What can I do with the XML Viewer for Java?

    The XML Viewer for Java allows you to view the hierarchy of any well-formed document. It also allows you to view the text corresponding to any node in the hierarchy and the text corresponding to the definition of the node.

  2. What are the platforms supported?

    The components can be used on any platform supporting JDK1.1.5 or above and having swing 1.02 support.

    Note:
    Although the application runs on JDK1.2 (Java 2), changes in the look-and-feel do not take effect.

  3. What look-and-feel is supported by the application?

    The Application populates the Look & Feel Menu with the installed look-and-feel of the Swing installation in your machine. The application has been tested with the default look-and-feel, namely: Metal, CDE/Motif and Windows.

  4. Why do the source views display data different from the actual source?

    The XML Source View displays data different from the actual source for the following reasons:

    1. The XML Source view expands all entities by default.
    2. The XML Source view does not display the prolog xml version="1.0".
    3. The XML Source view does not display the Document Type Definition declaration.

    The DTD Source View displays data different from the actual source for the following reasons:

    1. The DTD Source view combines the internal and external DTDs.
    2. The DTD Source view expands all parameter entities by default.
    3. The DTD Source view does not display the prolog xml encoding="US-ASCII".

    If errors are encountered while parsing the XML Document, the Source views may display different data.

  5. Is it "100% Pure Java"?

    Although not officially certified by Sun, the XML Viewer for Java has been written in 100% Pure Java.


REQUIREMENTS
Click here to view the
Installation Procedures

XML Viewer Platform Requirements
Hardware Approximately 850 KB of disk space is required to install the xml.jar file and 462 KB to install the xml4j.jar parser.
Software
  • XML Viewer for Java is designed to work with Java Development Kit Version 1.1.5 and above.
  • You need to install JFC 1.1(Swing 1.0) (package name: com.sun.java.swing.*) on your machine. Make sure that swingall.jar is in the CLASSPATH.
    Note:
    Although the application runs in JDK 1.2, changes in the Look & Feel do not take effect due to the differences in the swing versions.


  • XML Viewer Installation Procedures

    1. Download and unzip xmlviewer.zip. Unzip it using the jar command or any unzip utility. It will automatically create a new directory called xmlviewer and extract files into it.

    2. To run the XML viewer application, type:

      java runviewer
      

      in the command prompt (shell) in the demo directory.

    3. Refer to Readme.txt for further information.


    DOWNLOADS
    File Size Comments  
    xmlviewer.zip 531 KB ZIP file containing XML Viewer package.