File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Product and Other Certifications and the fly likes correct answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "correct answer" Watch "correct answer" New topic

correct answer

Nitin Gogia

Joined: Jan 17, 2003
Posts: 22
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
John Wetherbie

Joined: Apr 05, 2000
Posts: 1449
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
I agree. Here's the link:
subject: correct answer
It's not a secret anymore!