title: SAX parser load the DTD file
body: <p>I have used the DOM parser before, put the DTD file under the project, the DOM code could detect the DTD file itself and parse the file based on the rules.
  While I transfer to the SAX parser, it seems the SAX parser couldn't detect the DTD file itself without setting. There are some posts mentioned to use <code>resolveEntity()</code>, while I couldn't understand very well. Could anyone help me to solve this problem to load a local DTD file to my java code in a simple way(in eclipse without CMD)? </p>
  
  <p>If anyone could give a code example, it's the best. </p>