Discussions

XML & Web services: Asynchronous processing of XML

  1. Asynchronous processing of XML (3 messages)

    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 ?
  2. Asynchronous processing of XML[ Go to top ]

    It can't be possible. The basic objective of DOM parser is load entire structure into memory. It can't violates it basic rule.
  3. Asynchronous processing of XML[ Go to top ]

    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.
  4. http://www.dom4j.org/apidocs/org/dom4j/ElementHandler.html ?