"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
posted
0
And this is also Ok! Good job done, Berny! The reference is much improved now... [ February 03, 2002: Message edited by: Viktor Stepanchuk ]