public MessageEmitterAdapter newErrorHandler(int lineOffset, boolean asciiQuotes, OutputFormat outputFormat) throws SAXException {
            boolean showSource = true;
            boolean batchMode = true;
            MessageEmitterAdapter adapter = new MessageEmitterAdapter(null, this.validator.getSourceCode(), showSource,
                    new ImageCollector(this.validator.getSourceCode()), lineOffset, batchMode, newEmitter(asciiQuotes, outputFormat));
            adapter.setErrorsOnly(false);
            adapter.setHtml(true);
            adapter.start(null);
            return adapter;
        }
Self-contained, single use class for encapsulated building of an embedded
validator.
src/nu/validator/client/EmbeddedValidator.java