This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Viktors 141 Sample Test: Question 29

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And this is also Ok! Good job done, Berny!
The reference is much improved now...
[ February 03, 2002: Message edited by: Viktor Stepanchuk ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic