Hi,

You can look at the ThreadTest project sources in the Xerces-C++ distribution.

Good luck!
        Vitaly

SonalG wrote:

Hi,

I want to parser multiple XML documents using SAX parser.
I read somewhere on the net that you can create a pool of threads for this
purpose but did not find sample code supporting it.

One way is create a different parser object each time, but this is expensive
operation and also calling initialize for each new parser object is
expensive

Does any one have any examples to share?

My application is creating different thread which internally calls the
"parse" method of the same "parser object". This gives strange results as it
is reading one file correctly but for the second XML file it just reads part
of file and stops.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to