public static WebXml parseWebXmlFromFile(File theFile,EntityResolver theEntityResolver) throws IOException, JDOMException {
  InputStream in=null;
  try {
    in=new FileInputStream(theFile);
    return parseWebXml(in,theEntityResolver);
  }
  finally {
    if (in != null) {
      try {
        in.close();
      }
 catch (      IOException ioe) {
      }
    }
  }
}

public static WebXml parseWebXmlFromFile ( File theFile , EntityResolver theEntityResolver ) throws IOException , JDOMException { InputStream in = null ; try { in = new FileInputStream ( theFile ) ; return parseWebXml ( in , theEntityResolver ) ; } finally { if ( in != null ) { try { in . close ( ) ; } catch ( IOException ioe ) { } } } }
parses a deployment descriptor stored in a regular file .
