Parse an XML document and initiate threads.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vinod_Kaggal
Posted On:   Wednesday, December 5, 2001 07:08 AM

If I had to parse an XML file and based on the contents trigger one or more thread and also have
an option to pause parsing the xml so that one or more threads that bave been triggered complete
execution, how do I do this?

Re: Parse an XML document and initiate threads.

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, December 5, 2001 07:43 AM

you need to use SAX Parser. DOM Parsers parse entire XML document at once. SAX parser parse piece by piece providing callback when certain elements of the XML file are parsed. from the SAX Handler that handles the parsing for you, you can stop the parsing, initiate thread or do whatever you want to do.
About | Sitemap | Contact