Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which one?

 
Nikki Parker
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
Which is better SAX or DOM? I dont understand way their are two...why not just one.
thanks.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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...
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic