public static DocumentTable fileToTable(File f, SymbolTable symbols) throws DTSMException {
if ( f != null ) {
try {
SAXTableGenerator stg = new SAXTableGenerator(f);
stg.setSymbolTable(symbols);
return stg.process();
}
catch ( IOException e ) {
throw new DTSMException("Couldn't convert file '"+f.getName()+"' to table", e);
}
}