
338 • XML & Related Technologies
As we can see, our application program would need to interface with JAXP. JAXP, in turn, would
interface with SAX or DOM, as appropriate.
JAXP is not a new means for parsing XML. It does not also add to SAX or DOM. Instead, JAXP
allows us to work with SAX and DOM more easily and consistently. We must remember that we cannot
parse an XML document without SAX, DOM, or another parser API (such as JDOM or dom4j). We need
to remember this:
SAX, DOM, JDOM and dom4j parse XML. JAXP provides a way to invoke and use such a parser,
but does not parse an XML document itself.
At this juncture, we need to clarify that even JDOM ...