code: public void parse(DefaultHandler dh, File f) throws SAXException, ParserConfigurationException, IOException {
          SAXParserFactory spf = SAXParserFactory.newInstance();
          SAXParser sp = spf.newSAXParser();
          XMLReader xr = sp.getXMLReader();
  
          xr.setContentHandler(dh);
          xr.parse(new InputSource(new FileInputStream(f)));
      }
docs: tag OCP dh could be a ContentHandler instead