1 29 30 package com.caucho.quercus.lib.dom; 31 32 import org.w3c.dom.*; 33 import org.xml.sax.SAXException ; 34 35 import java.io.IOException ; 36 import java.io.InputStream ; 37 38 public interface DOMFactory { 39 Attr createAttr(String name); 40 41 Comment createComment(); 42 43 Document createDocument(); 44 45 Document createDocument(DocumentType docType); 46 47 DocumentType createDocumentType(String qualifiedName); 48 49 DocumentType createDocumentType(String qualifiedName, 50 String publicId, 51 String systemId); 52 53 Element createElement(String name); 54 55 Element createElement(String name, String namespace); 56 57 EntityReference createEntityReference(String name); 58 59 ProcessingInstruction createProcessingInstruction(String name); 60 61 Text createText(); 62 63 org.w3c.dom.DOMImplementation getImplementation(); 64 65 void parseXMLDocument(Document document, InputStream is, String path) 66 throws IOException , SAXException ; 67 68 void parseHTMLDocument(Document document, InputStream is, String path) 69 throws IOException , SAXException ; 70 } 71 | Popular Tags |