I am developing an application in JSP which fetches a XML file from Internet, process the data and display it using JSP. I am using DOM parsers to process the xml file. Now the problem is that the file takes a long time to get downloaded and then only the processing starts. Is there any way to start the processing as soon as any xml data arrives and continue the two processes simultaneously. That is, as and when a new portion of data is received it should immediately be transferred for processing.
Can this be possible. Any help ?
-
Asynchronous processing of XML (3 messages)
- Posted by: Manish Gupta
- Posted on: April 28 2005 09:22 EDT
Threaded Messages (3)
- Asynchronous processing of XML by Aravind K on April 28 2005 12:19 EDT
- Asynchronous processing of XML by Deepak Dixit on April 29 2005 09:49 EDT
- Asynchronous processing of XML by Krzysztof Galazka on April 29 2005 18:10 EDT
-
Asynchronous processing of XML[ Go to top ]
- Posted by: Aravind K
- Posted on: April 28 2005 12:19 EDT
- in response to Manish Gupta
It can't be possible. The basic objective of DOM parser is load entire structure into memory. It can't violates it basic rule. -
Asynchronous processing of XML[ Go to top ]
- Posted by: Deepak Dixit
- Posted on: April 29 2005 09:49 EDT
- in response to Aravind K
Try combining SAX and DOM both, I haven't done that but if possible , if you get certain set of XML data , you start creating XML and then transform to your result. -
Asynchronous processing of XML[ Go to top ]
- Posted by: Krzysztof Galazka
- Posted on: April 29 2005 18:10 EDT
- in response to Manish Gupta