DocumentBuilder builder = factory.newDocumentBuilder();
builder.setErrorHandler(errHandler);
doc = builder.parse(input);
} catch (SAXParseException sxe) {
System.err.println(sxe.getMessage() + ": " + String.valueOf(sxe.getLineNumber()));
throw new InputMismatchException("XML Parsing failure during planning");
} catch (SAXException sxe) {
System.err.println(sxe.getMessage());
throw new InputMismatchException("XML Parsing failure during planning");
} catch (ParserConfigurationException e) {
System.err.println(e.getMessage());
throw new InputMismatchException("XML Parsing failure during planning");
} catch (IOException e) {
System.err.println(e.getMessage());
throw new InputMismatchException("XML Parsing failure during planning");
}
if (doc == null) {
System.err.println("Unexpected error parsing hsql parsed stmt xml");
System.exit(-1);