+ 2
Difference between DOM and SAX parser in Java?
Difference between DOM and SAX parser in Java?
1 Respuesta
+ 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