Re: [xml-dev] SAX/Java Proposed Changes

Elliotte Rusty Harold <[email protected]> Tue, 9 Mar 2004 10:27:36 -0500
Newsgroups gmane.text.xml.sax.devel,gmane.text.xml.devel
Message-ID <p06010201bc737da03f20@[192.168.254.4]>
At 8:35 AM +0100 3/9/04, Jochen Wiedmann wrote:

>Right. This program demonstrates, that endDocument() cannot be used
>for freeing up ressources or doing similar stuff. In other words,
>I anyways need some knowledge on the filter or whatever ContentHandler
>is invoked by the parser in order to do my housekeeping stuff.

No you don't. If you throw an exception, then you can clean up before 
you throw it, though that clean up is normally going to be different 
than the cleanup you'd do for a parser thrown exception. There is a 
difference between an exception my code creates and an exception that 
is created by bad input data.
-- 

   Elliotte Rusty Harold
   [email protected]
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel