Hello:

I am having a problem with DefaultHandler.  Here are 
before and after scenarios.

In the past, I registered ContentHandler classes and 
ErrorHandler classes independently with my 
XMLReader object using setContentHandler and 
setErrorHandler.  Everything worked fine.  I used a 
schema to validate and process my XML.  Any errors 
triggered the appropriate error callbacks.

To simplfy my code I decided to subclass 
DefaultHandler and register these subclasses using 
the same methods above with my DefaultHandler 
subclasses as arguments.  This should work right?
Well, my code parses just the same as before except 
for the error callbacks.  These callbacks do not trigger 
when I introduce errors into my XML.  However, I know 
that my schema is still processing and validating 
because parsing will terminate at schema errors.  This 
is particularly bothersome as I no longer can easily pick 
out problem areas in my XML.

Anybody have this same problem?

Duke Hamacher
[EMAIL PROTECTED]
Madison, Wisconsin 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to