0

Possible Duplicate:
difference about SAX and DOM

I maybe have what you mean is a simple question, but a little more difficult question to me, because I have never used either SAX or DOM parsing. My question is then, what are really the differences, and when do I know which one to use, compared with the other one.

Which one is the fastest?, or are they much the same in performance?

I hope someone would answer this for me, since I am about to get started working with it, and I therefore want to know which one I should use first.

Community
  • 1
  • 1
  • Sorry I didn't saw that post, but yes you're right I can see :) thank you – Martin Rohwedder Feb 20 '12 at 09:50
  • See this :: http://javarevisited.blogspot.in/2011/12/difference-between-dom-and-sax-parsers.html http://sharat.wordpress.com/2006/09/27/83-what-are-the-differences-between-sax-and-dom-parser/ http://allu.wordpress.com/2006/12/28/difference-between-sax-and-dom-parsers/ – Samir Mangroliya Feb 20 '12 at 09:33
  • Thank you, I will begin read the articles that you have referenced here. Thanks for the fast response :) – Martin Rohwedder Feb 20 '12 at 09:37
  • The First article tells me that using DOM parser is fastest, if the XML file is small, but if my XML files with time because larger will it then be better to use SAX from the start, or should I just provide my application with an update, when I know my XML file is beginning to get to large? Besides how large should it become, before performance become an issue? – Martin Rohwedder Feb 20 '12 at 09:47

0 Answers0