On Mon, 2002-05-13 at 14:48, Lemmin, Harald wrote: > Hello, > > If Xerces recognizes any parseerror it throws SAXParseException as well as > gives some output on the console. For example: > [Fatal Error] :1:1: Content is not allowed in prolog. > > The console output has been added with Xerces 2. > > I do not want it. How can I switch it off?
implement an errorhandler which catches these message. by default the handler prints the messages a.s.o. to stdout (or stderr?). and assign the handler to the parser. so, first implement org.xml.sax.ErrorHandler and than set the error handler like this // set the handler XMLErrorHandler handler = new XMLErrorHandler(); domparser.setErrorHandler(handler); cu
signature.asc
Description: This is a digitally signed message part
