1 | import org.xml.sax.Parser; |
2 | import org.xml.sax.DocumentHandler; |
3 | import org.xml.sax.helpers.ParserFactory; |
4 | |
5 | public class XMLContent { |
6 | static final String parserClass = "com.ibm.xml.parsers.SAXParser"; |
7 | public static void main (String args[]) throws Exception { |
8 | Parser parser = ParserFactory.makeParser(parserClass); |
9 | DocumentHandler handler = new MyHandler(); |
10 | parser.setDocumentHandler(handler); |
11 | for (int i = 0; i < args.length; i++) { |
12 | parser.parse(args[i]); |
13 | } |
14 | } |
15 | } |