//ByteArrayOutputStream tAdapterOutput = new ByteArrayOutputStream(2048);
// Set up the parser context and listener to hold the adapter output
ParserContext pContext = new ParserContext();
ParserListener listener= new DTDXmlParserListener(adapterOutput, outDTD == null ? null
: Config.getInstance().getXMLBaseURL() + "/" + outDTD);
pContext.addListener(listener);
// Attempt to harvest the metadata.
try {