Hello Everyone,

Can anyone explain me the difference between "advanced document handler"
(XMLDocumentHandler derived) and normal ones (DefaultHandler derived) in
SAX2? I.e. I see the different APIs that they have, but when is one
supposed to be used over the other?

I was using "normal" handlers (derived from DefaultHandler) in my code.
However, now I need to get notification about XML declaration (to get
the doc encoding data), and that is available only in
XMLDocumentHandler. That probably means I have to rewrite my code to use
XMLDocumentHandler API now, right?

What is the rationale for having two different Handler APIs?  

Thanks a lot for the explanation,

        -- Matt


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

Reply via email to