File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Viktors 141 Sample Test: Question 29 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Product and Other Certifications
Reply Bookmark "Viktors 141 Sample Test: Question 29" Watch "Viktors 141 Sample Test: Question 29" New topic
Author

Viktors 141 Sample Test: Question 29

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
"For an application that makes use of XML, the input XML data set consists of many elements and is very large. The BEST way to filter or extract a subset of information from the complete XML document would be to:
Single Select - Please select the best answer (one and only one choice must be selected). "
a) Parse the input into a DOM tree and traverse the resulting tree.
Viktor: Yes
b) Employ an "event driven" processing model to extract the required elements.
Viktor: No, this is SAX, to extract another subset, one should start all over
c) Make use of an XSL style sheet.
Viktor: No, to extract another subset you have to apply another style sheet
d) Use the Scalable Vector Graphics (SVG) vocabulary.
Viktor: No, this is just graphics
... the input element is very large. Therefore using DOM is critical. Under the hood a XSLT compiler may use SAX or DOM to parse the XML file. Because we don't know I would go for the 'BEST way' and use b) SAX. SAX is perfect to filter some data out of large XML files.
Regards
Berny
Viktor Stepanchuk
Greenhorn

Joined: Feb 03, 2002
Posts: 20
And this is also Ok! Good job done, Berny!
The reference is much improved now...
[ February 03, 2002: Message edited by: Viktor Stepanchuk ]
 
 
subject: Viktors 141 Sample Test: Question 29
 
Threads others viewed
DOM/SAX Questions
More questions.
answers of the sample test
Sample Questions--Part A
Errors in DOM/SAX Mock exams ???
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture