Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Which one?" Watch "Which one?" New topic

Which one?

Nikki Parker

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.
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:
and you can find a whole lot more when you use the
search tool. Just type "SAX DOM" for
the serach words.
- satya
ps: Why Java and Microsoft, why not just Java...

Take a Minute, Donate an Hour, Change a Life
Terence Doyle
Ranch Hand

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

Raising Flares debut album 'Ignition' out now

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
I agree. Here's the link:
subject: Which one?
It's not a secret anymore!