• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question ?

 
Vijay Shrivastava
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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?
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, ur right. The answer should be a, definitely.

Doug.
 
Jhimi R
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
Adrian Ferreira
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • 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 ]
 
Louis Fegun
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic