pamiers
pamiers

Reputation: 355

How can I parse multiple XML documents at once?

I am using a SAXParser in Java to parse my XML documents. Now I would like to improve the performance and parse multiple documents at once.

Is this possible?

Upvotes: 0

Views: 337

Answers (1)

Konrad Reiche
Konrad Reiche

Reputation: 29523

Yes, you can do that with Concurrent Programming. Spawning different threads where each of them parses one document would realize multithreaded XML parsing. Making use Thread Pools would ease the implementation.

Upvotes: 3

Related Questions