[XML-SIG] Another SAX Suggestion
Lars Marius Garshol
04 May 1999 20:24:49 +0200
* Paul Prescod
| How about if we give HandlerBase a single initialization parameter
| which is the stream to output to. If you are a server or GUI app
| writer all you need to do is pass in a null output stream to get the
| error handling you want.
I don't like this approach. I think something like
is much to be preferred. We could then keep the current ErrorPrinter,
which takes both an output stream _and_ an numeric level parameter so
that warnings and/or errors can be ignored.
| More likely it is the hordes of simple filter writers who will
| forget -- so the default should be optimized for them.
This should definitely be considered when we define the filter
interface for SAX 2 (or layered on top of it).