11
|
1 package jp.ac.u_ryukyu.ie.cr.tatsuki.oldTree;
|
|
2
|
|
3 import java.io.BufferedWriter;
|
|
4 import java.io.File;
|
|
5 import java.io.FileInputStream;
|
|
6 import java.io.FileWriter;
|
|
7 import java.io.IOException;
|
|
8 import java.io.PrintWriter;
|
|
9
|
|
10 import javax.xml.parsers.ParserConfigurationException;
|
|
11 import javax.xml.parsers.SAXParser;
|
|
12 import javax.xml.parsers.SAXParserFactory;
|
|
13
|
|
14 import org.xml.sax.SAXException;
|
|
15
|
|
16 import ac.jp.u_ryukyu.cr.ie.tatsuki.xmlReader.UpdateXmlHundler;
|
|
17
|
|
18 public class UpdateXml {
|
|
19 public static void main(String args[]) throws ParserConfigurationException, SAXException, IOException {
|
|
20 for (String xml : args) {
|
|
21 SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
|
|
22 SAXParser saxParser = saxParserFactory.newSAXParser();
|
|
23 UpdateXmlHundler updateXmlHandler = new UpdateXmlHundler(xml);
|
|
24 saxParser.parse(new FileInputStream("/Users/e115731/workspace/JungleXmlReader/_xml/" + xml + ".xml"),
|
|
25 updateXmlHandler);
|
|
26 }
|
|
27 }
|
|
28 }
|