+ 2

Difference between DOM and SAX parser in Java?

Difference between DOM and SAX parser in Java?

21st May 2019, 7:14 PM
TheEngineerIN
TheEngineerIN - avatar
1 ответ
+ 5
Akshay Biradar DOM parser loads whole XML document in memory while SAX only loads a small part of the XML file in memory. SAX parser in Java isbetter suitable for large XML file than DOM Parser because it doesn't require much memory.  DOM parser works on Document Object Model while SAX is an event based XML parser. source: https://javarevisited.blogspot.com/2011/12/difference-between-dom-and-sax-parsers.html?m=1 I hope I was helpful
21st May 2019, 8:34 PM
Alessio Benvenuti
Alessio Benvenuti - avatar