Basic HTML version of Foils prepared August 1 99

Foil 42 Validation of Document

From Advanced XML and its applications CPS714 Computational Science Information Track -- July 7 99. by Lukasz Beca


1 import org.xml.sax.ErrorHandler;
2 import org.xml.sax.SAXException;
3 import org.xml.sax.SAXParseException;
4
5 public class ErrorReport
6 implements ErrorHandler {
7
8 /** Warning. */
9 public void warning(SAXParseException ex) {
10 System.err.println("[Warning] "+
11 getLocationString(ex)+": "+
12 ex.getMessage());
13 }
14
15 /** Error. */
16 public void error(SAXParseException ex) {
17 System.err.println("[Error] "+
18 getLocationString(ex)+": "+
19 ex.getMessage());
20 }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Aug 1 1999