import org.xml.sax.Parser; |
import org.xml.sax.ErrorHandler; |
import org.xml.sax.helpers.ParserFactory; |
public class Validator { |
static final String parserClass = "com.ibm.xml.parsers.ValidatingSAXParser"; |
public static void main (String args[]) throws Exception { |
Parser parser = ParserFactory.makeParser(parserClass); |
ErrorHandler handler = new ErrorReport(); |
parser.setErrorHandler(handler); |
parser.parse(args[0]); |
} |
} |