The
notes link really is a good guide to this, but to put it more plainly, I read the requirements like this:
-JavaToXML should put the DOCTYPE line in by default.
-Counter.class should be repackaged to make it visible to JavaToXML.
-when JavaToXML is called with arguments "-v" or "-v -s", it should create the XML, then
run Counter itself, using the appropriate arguments to test the file it has just created.
-this is possible against dtd if the DOCTYPE statement is in the XML by default. To test against an xsd, remember that "-schema Whatever.xsd" is a valid set of arguments to pass to Counter for validation without having to have a specific header in the xml file.
Hope this helps,
Matt