gov.llnl.babel.xml

Class XMLTest


public class XMLTest
extends java.lang.Object

Class XMLTest is a simple unit test for the XML utilities class. It may be called in two ways. If called with only one argument representing an XML document URI, then that XML document is parsed and echoed back to standard output. The main routine may also be called with three arguments: a DTD URI, a start element name for the XML document, and the URI of the XML document. This test code will parse the document, validate it against the DTD, and then output it to the standard output.

Method Summary

static void
main(argv[] )
Method main is the entry point for the unit test.

Method Details

main

public static void main(argv[] )
Method main is the entry point for the unit test. See the class documentation for calling arguments.