@Pangea
JAXB vs DOM and SAX
JAXB is not directly comparable to DOM and SAX. The Java DOM and SAX
parsing APIs are lower-level APIs to parse XML documents, while JAXB
(Java API for XML Binding) is a higher-level API for converting XML
elements and attributes to a Java object hierarchy (and vice versa).
Implementations of JAXB will most likely use a DOM or SAX parser
behind the scenes to do the actual parsing of the XML input data.