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