wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Which one? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Which one?" Watch "Which one?" New topic
Author

Which one?

Nikki Parker
Greenhorn

Joined: Jul 17, 2001
Posts: 22
hello all,
Which is better SAX or DOM? I dont understand way their are two...why not just one.
thanks.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Well, both these serve different purposes.
While I don't want to repeat what was said before,
here are some links which deal with the same qstn:
http://www.javaranch.com/ubb/Forum31/HTML/000014.html http://www.javaranch.com/ubb/Forum31/HTML/000527.html
and you can find a whole lot more when you use the
search tool. Just type "SAX DOM" for
the serach words.
regds.
- satya
ps: Why Java and Microsoft, why not just Java...

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
HI,
AS far as I can see SAX is serial access and DOM is random access.
( gleamed that from comments on this page : http://java.sun.com/xml/tutorial_intro.html)
So I imagine the implementation details of a project would determine the most efficient one to use.
Correct me if I'm wrong please.
Terry
[This message has been edited by Terence Doyle (edited August 07, 2001).]


Raising Flares debut album 'Ignition' out now

http://www.raisingflares.com

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Which one?
 
Similar Threads
roles of manager and technical Architect
Fabulous cowboy
Output for a Jave prog
jQuery template plugin
chalabaga vundee raa