final long stime = System.currentTimeMillis();
System.out.println( localize(MSG_START_PARSING_GRAMMAR) );
Grammar grammar=null;
try {
GrammarLoader loader = new GrammarLoader();
// set various parameters
loader.setController( new DebugController(warning,false,entityResolver) );
loader.setSAXParserFactory(factory);
loader.setStrictCheck(strict);
grammar = loader.parse(grammarName);
} catch(SAXParseException spe) {
if(Debug.debug)
spe.getException().printStackTrace();
; // this error is already reported.