• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question ?

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Author says answer is b? Can anyone tell me why not a?
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, ur right. The answer should be a, definitely.

Doug.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No way the reply can be b. It is clearly mentioned that - "The memory & speed may be a constraint". Also the size is very big.So the answer definitely is a not b.
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a) Is the best answer. I agree if you.
b) Never, for all those requirements.
c) May be if the XSLT tool were implemented using Sax but not if it use DOM. As nothing is sad, this choice is not right.
d) No matter if you choose DTD or squema.
So, b) is the worst choice, not the best one.
Adrian
[ January 28, 2002: Message edited by: Adrian Ferreira ]
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi-
Could you please tell us who the author is as he is misleading innocent newbies. The answer is definitely a.
Louis.
[ January 25, 2002: Message edited by: Louis Fegun ]
 
Vijay Shrivastava
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
posted January 25, 2002 02:39 PM
--------------------------------------------------------------------------------
Hi-
Could you please tell us who the author is as he is misleading innocent newbies. The answer is definitely a.
Louis.
http://www.javaranch.com/xml/XML_DOM_SAX.htm Mock EXAM of Javaranch.
[ January 25, 2002: Message edited by: Vijay Shrivastava ]
[ January 25, 2002: Message edited by: Vijay Shrivastava ]
 
Eliminate 95% of the weeds in your lawn by mowing 3 inches or higher. Then plant tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic