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.ari...@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: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to