1 9 10 package org.dom4j.samples; 11 12 import org.dom4j.Document; 13 import org.dom4j.io.SAXReader; 14 15 21 public class SAXDemo extends AbstractDemo { 22 23 public static void main(String [] args) { 24 run(new SAXDemo(), args); 25 } 26 27 public SAXDemo() { 28 } 29 30 protected Document parse(String xmlFile) throws Exception { 31 SAXReader reader = new SAXReader(); 32 return reader.read(xmlFile); 33 } 34 35 } 36 37 75 | Popular Tags |