if (e instanceof SAXParseException) {
SAXParseException spe = (SAXParseException) e;
System.err.printf("%s:%d:%d: %s%n",
spe.getSystemId(), spe.getLineNumber(),
spe.getColumnNumber(), spe.getMessage());
}
else {
System.err.println(e.getMessage());
}
System.exit(1);