}
private void init() throws ToolException {
try {
parser = new LineNumDOMParser();
preparser = new XMLGrammarPreparser();
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);