title: Make DocumentBuilder.parse ignore DTD references
body: <p>When I parse my xml file (variable f) in this method, I get an error </p>
  
  <blockquote>
    <p>C:\Documents and Settings\joe\Desktop\aicpcudev\OnlineModule\map.dtd (The system cannot find the path specified)</p>
  </blockquote>
  
  <p>I know I do not have the dtd, nor do I need it.  How can I parse this File object into a Document object while ignoring DTD reference errors?</p>
  
  <pre><code>private static Document getDoc(File f, String docId) throws Exception{
      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
      DocumentBuilder db = dbf.newDocumentBuilder();
      Document doc = db.parse(f);
  
  
      return doc;
  }
  </code></pre>