The JAXP APIs are defined in the javax.xml.parsers package, which contains two factory classes—SAXParserFactory and DocumentBuilderFactory.
The packages that define the SAX and DOM APIs are
javax.xml.parsers A common interface for different vendors' SAX and DOM parsers
org.w3c.dom Defines the DOM and all of the components of a DOM
org.xml.sax The SAX API
You will now build two applications—one that uses the SAX API and one that uses DOM.