There is XML data document which is very large. The application is to extract the very few of its information from document. The memory & speed may be a constraint. Which is the most likely method to be implemented ? a) Extract the information using SAX API, event based methods. b) To extract the information using DOM API. c) To extract the necessary information and process using XSLT. d) To use schema based approach. This question is given in DOM/SAX mock exam from Javaranch website. It says correct answer should be b. But according to me it should be a as it is clearly given speed and memory may be constraint and only a few of information from document is to be extracted. Please clarify
Joined: Apr 05, 2000
I'd say A (SAX). I had thought there was a revised version of this mock posted but I guess not. I'll have to check into that.
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai