1 16 17 package dom; 18 19 import org.w3c.dom.Document ; 20 import org.w3c.dom.Text ; 21 22 import org.xml.sax.SAXNotRecognizedException ; 23 import org.xml.sax.SAXNotSupportedException ; 24 25 30 public interface ParserWrapper { 31 32 36 37 public Document parse(String uri) throws Exception ; 38 39 57 public void setFeature(String featureId, boolean state) 58 throws SAXNotRecognizedException , SAXNotSupportedException ; 59 60 61 public DocumentInfo getDocumentInfo(); 62 63 67 74 public interface DocumentInfo { 75 76 80 83 public boolean isIgnorableWhitespace(Text text); 84 85 } 87 } | Popular Tags |