By jsugrue
via java.dzone.com
Published: Apr 28 2010 / 09:13
There's a lot of choice out there for handling XML data in Java applications. Although the technologies have been around for ages, the main options for most developers seems to be DOM or SAX. But even these well-established approaches have their limits. DOM can be a lot of overhead if you want to read a large document, as it keeps it in memory; SAX is more efficient, but can involve a lot of messy code if you want to keep any of the data that you read in memory. A good halfway for me is JAXB - seemingly fast and keeps a meaningful object structure in memory.
Comments
MCII replied ago:
It depends, of course.
Voters For This Link (30)
Voters Against This Link (1)