Re: [xml-dev] SAX Exception Handling

From
Karl Waclawek <>
To
Jeffrey Winter <>,
Date
2004-01-16T19:21:26Z
ID
<004501c3dc65$efde5980$9e539696@citkwaclaww2k>
Thread
Re: [xml-dev] SAX Exception Handling
> Is there a standard way of informing all
> members of an XMLFilter chain that some
> member has thrown an Exception allowing
> all members to cleanup?
> 
> Given a chain of XMLFilters, some of which may
> perform transactional operations:
> 
>   a--->b--->c--->d--->e
> 
> If filter "c" throws an Exception, it
> will propagate back up the parent chain to
> "b" and "a" however, "d" and "e" would
> be unaware of the problem and not have an
> opportunity to rollback.

Some SAX parsers guarantee that EndDocument
will always be called. There was a thread
about that very issue recently on this list.

Karl