Comparison of Java XML Programming Interfaces: DOM SAX JDOM JAXP

by moyuhappy on 2008-08-05 15:32:20

I. DOM (Document Object Model)

Defines a set of interfaces for the parsed version of an XML document. The parser reads the entire document and then builds an in-memory tree structure, which can then be manipulated by code using DOM interfaces.

Advantage: The entire document tree resides in memory, making it easy to manipulate; it supports multiple functions such as deletion, modification, and reordering.