1.

How Do Handle Errors?

Answer»

When you create a parser instance, the DEFAULT error handler does nothing. This MEANS that your program will fail silently when it encounters an error. You should register an error handler with the parser by supplying a class which IMPLEMENTS the org.xml.SAX.ErrorHandler interface. This is true regardless of whether your parser is a DOM based or SAX based parser.

When you create a parser instance, the default error handler does nothing. This means that your program will fail silently when it encounters an error. You should register an error handler with the parser by supplying a class which implements the org.xml.sax.ErrorHandler interface. This is true regardless of whether your parser is a DOM based or SAX based parser.



Discussion

No Comment Found