private static void setSchema(String schemaUrl)
            throws SAXException, Exception {
        try {
            validator.setUpMainSchema(schemaUrl, new SystemErrErrorHandler());
        } catch (SchemaReadException e) {
            otherOut.println(e.getMessage() + " Terminating.");
            System.exit(1);
        } catch (StackOverflowError e) {
            otherOut.println("StackOverflowError"
                    + " while evaluating HTML schema.");
            otherOut.println("The checker requires a java thread stack size"
                    + " of at least 512k.");
            otherOut.println("Consider invoking java with the -Xss"
                    + " option. For example:");
            otherOut.println("\n  java -Xss512k -jar ~/vnu.jar FILE.html");
            System.exit(1);
        }
        validator.setUpValidatorAndParsers(errorHandler, noStream, loadEntities);
    }
Simple command-line validator for HTML/XHTML files.
src/nu/validator/client/SimpleCommandLineValidator.java