private static void enableFileAccess(SAXParser parser) throws SAXNotSupportedException {
  try {
    parser.setProperty("http://javax.xml.XMLConstants/property/accessExternalDTD","file");
  }
 catch (  SAXNotRecognizedException ignore) {
  }
}

private static void enableFileAccess ( SAXParser parser ) throws SAXNotSupportedException { try { parser . setProperty ( "http://javax.xml.XMLConstants/property/accessExternalDTD" , "file" ) ; } catch ( SAXNotRecognizedException ignore ) { } }
configure the parser to allow access to dtds on the file system .
