This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "correct answer" Watch "correct answer" New topic
Author

correct answer

Nitin Gogia
Greenhorn

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
Rancher

Joined: Apr 05, 2000
Posts: 1441
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: correct answer
 
Similar Threads
DOM/SAX Questions
Sample DOM/SAX Question #4
DOM OR SAX
Questions on DOM/SAX test from XML Exam List
Question ?