import org.apache.xerces.parsers.DOMParser; ... try { DOMParser parser = new DOMParser(); parser.parse( "test.xml"); Document document = parser.getDocument(); } catch (SAXException e) { e.printStacktrace(); } catch (IOException e) { e.printStacktrace(); }
DOM does not use the Factory pattern to create a specific DOM implementation.
Need to reference a specific DOM Parser in the code.