You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Michael Glavassevich <mr...@apache.org> on 2010/10/03 13:20:37 UTC

Re: Reusing Xerces parsers after Exception

Hi Philip,

Yes, it's safe to reuse instances of Xerces parsers after they've thrown 
an exception. When you call the parse method they reset their internal 
state before starting to process the document.

Thanks.

On Thu, 30 Sep 2010, philip.arickx@emc.com wrote:

> Hi,
> 
>  
> 
> When implementing a Xerces parser pool, I?m faced with the following
> question : if a parser has thrown an exception during parsing, is it safe to
> reuse the parser afterwards, i.e. add it back to the pool ?
> 
>  
> 
> Does anybody have any experience with this ?
> 
>  
> 
> Thanx !
> 
> Philip

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org