SAXParserFactory factory = new SAXParserFactoryImpl(new File(args[0]));
// once the parser factory is created, just do as you always do.
factory.setNamespaceAware(true);
SAXParser parser = factory.newSAXParser();
for( int i=1; i<args.length; i++ ) {
// validation errors will be reported just like any other errors.
final String fileName = args[i];
parser.parse( new File(fileName), new DefaultHandler() {