// the error handler passed to Parseable will receive parsing errors.
if(args[0].endsWith(".rng"))
p = new SAXParseable(new InputSource(args[0]),eh);
else
p = new CompactParseable(new InputSource(args[0]),eh);
// the error handler passed to CheckingSchemaBuilder will receive additional
// errors found during the RELAX NG restrictions check.
// typically you'd want to pass in the same error handler,
// as there's really no distinction between those two kinds of errors.