System.out.println((System.currentTimeMillis() - startTime)/1000.0);
System.exit(hadErr ? 1 : 0);
}
static boolean parseEntity(OpenEntity entity) throws IOException {
Parser parser = new ParserImpl();
try {
parser.parseDocument(entity);
return true;
}
catch (NotWellFormedException e) {
System.err.println(e.getMessage());
return false;