TechArena Community

TechArena Community (http://forums.techarena.in/)
-   Software Development (http://forums.techarena.in/software-development/)
-   -   How to implement multithreaded parsing xml (http://forums.techarena.in/software-development/1176202.htm)

EULALIA 08-05-2009 11:40 AM

How to implement multithreaded parsing xml
 
I can organize a multithreaded parsing xml document. For example by clicking on the button, I called two classes. One gets the desired site. The second is waiting for some time, gets the index of this site and it reads the correct piece of xml document.

Radley 08-05-2009 11:48 AM

Re: How to implement multithreaded parsing xml
 
If you use the SAX parser you can for each tag to use a separate thread ... but, again, then collect all the information in one model ... and unlikely as it would expedite the process.

KADEN 08-05-2009 12:07 PM

Re: How to implement multithreaded parsing xml
 
XML elements have to be properly nested; in particular, the opening and closing tags of different elements must not overlap. In other words, an element's opening and end tags must reside in the same parent.The document is also derived from a full copy of each individual Record element from the input file. So that object is distinct for each task, and you have no problem with synchronization there either.


All times are GMT +5.5. The time now is 05:55 AM.