Document Revision: | $Revision: 1.6 $ |
---|---|
Date: | $Date: 2001/11/26 16:33:37 $ |
The NewsML Explorer provides a simple, interactive graphical view of a NewsML package, allowing the user to expand or collapse subtrees to see different levels of detail. The application has the following prerequisites:
The application classes are included in the main toolkit distribution; most of the implementation appears in the org.newsml.toolkit.explorer package, but the top-level application class, NewsMLExplorer, does not belong to any package.
The simplest way to use the NewsML Explorer is with the prebundled
newsml-explorer.jar
file: this includes all of the
required libraries (including an XML parser), and allows you to start
the application simply by executing the JAR file:
java -jar newsml-explorer.jar
If you are not using the prebundled JAR file, you start the application like this (after ensuring that all required libraries are installed and listed in your class path):
java NewsMLExplorer
In both cases, you can provide a URL or file name as a command-line argument, and it will be opened automatically when the application starts.
The NormalizeNewsML application provides a simple, command-line demonstration of the NewsML toolkit's (very basic) output capabilities. To use the demo, set up your system as with the NewsML Explorer (above), then use the command
java NormalizeNewsML <url...>
The NewsMLConformance application applies both XML validation and NewsML conformance testing to one or more NewsML documents and reports errors and warnings. To use the demo, set up your system as with the NewsML Explorer (above), then use the command
java NewsMLConformance [options] <url...>
The options are "-v" (or "--verbose") to enable verbose output, "-x" (or "--external") to allow the application to reference external URLs during conformance testing, and "-h" (or "--help") to display a summary of the program's usage.