Cormac Mullally wrote:
> Is this Xerces Java Parser 1.4.3 Multi threaded.  

No, Xerces is not "multi-threaded" -- it does not use 
multiple threads. However, if you mean "is Xerces thread-
safe?" then the answer is again no. And I believe that
most parsers are the same in this respect.

Parsing an XML document is a serial process. When you start
parsing a document, you need to wait until the parser has 
finished parsing (or an error occurs) before you can re-use 
the same parser instance.

Therefore, if your application is multi-threaded, then each
thread should have its own parser instance and not try to
share the same one. Or at least not use the same one at the
same time. But this requires synchronization to make sure 
that the threads don't step on each other's toes.

> If not is there one available.

I don't think that you're going to find one. But you can 
solve this problem in your application. I'm sure that there 
are lots of people on the xerces-j-user mailing list that 
have had to tackle the same problem and can offer you 
advice (and perhaps source code). 

-- 
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to