Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Beginning XML - handelling Exceptions.


Message #1 by "Mohan" <mohan@i...> on Tue, 20 Feb 2001 15:55:41 +0530
Hi,


Referrence - Begining XML, Chapter 7,  SAX parsing - ErrorHandler...


Can the error, fatalError, warning methods in HandlerBase used for 
SAXParsing an XML document handle the exception which may be thrown by 
other methods such as startElement, characters...


Theorotacally they should bit it is not happening...

my StartElements method checks for 'type' attribute in 'band' element 
and may throw exception.
Now this exception is thrown during parsing...so it shold for error, 
warning, fatalError method if overidden. I am over riding them in my 
class but they are nor getting invoked...

Any clues...?

Regards,
Mohan


  Return to Index