blob: 59862c7d8603d4f697d86569894e5fd928b14504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// MySAXApp.java -- Main driver class
// --> calls InvitationSAX which has customized code
import org.xml.sax.Parser;
import org.xml.sax.DocumentHandler;
import org.xml.sax.helpers.ParserFactory;
public class MySAXApp {
static final String parserClass = "com.microstar.xml.SAXDriver";
public static void main (String args[])
throws Exception
{ Parser parser = ParserFactory.makeParser(parserClass);
DocumentHandler handler = new InvitationSAX();
parser.setDocumentHandler(handler);
for (int i = 0; i < args.length; i++) {parser.parse(args[i]);}
}
}
|