import org.xml.sax.ErrorHandler; |
import org.xml.sax.SAXException; |
import org.xml.sax.SAXParseException; |
public class ErrorReport |
implements ErrorHandler { |
/** Warning. */ |
public void warning(SAXParseException ex) { |
System.err.println("[Warning] "+ |
getLocationString(ex)+": "+ |
ex.getMessage()); |
} |
/** Error. */ |
public void error(SAXParseException ex) { |
System.err.println("[Error] "+ |
getLocationString(ex)+": "+ |
ex.getMessage()); |
} |