1 23 24 package org.enhydra.xml.xmlc.html; 25 26 import org.enhydra.xml.xmlc.dom.XMLCDomFactory; 27 import org.enhydra.xml.xmlc.dom.xerces.XercesHTMLDomFactory; 28 import org.w3c.dom.html.HTMLDocument; 29 30 34 public class HTMLDocumentFactory { 35 38 private static XMLCDomFactory domFactory = new XercesHTMLDomFactory(); 39 40 43 private HTMLDocumentFactory() { 44 } 45 46 50 static public HTMLDocument createDocument() { 51 return (HTMLDocument)domFactory.createDocument(null, null, null); 52 } 53 54 59 static public HTMLDocument createBasicDocument(String title) { 60 HTMLDocument doc = createDocument(); 61 62 doc.setTitle(title); 64 doc.getBody(); 66 67 return doc; 68 } 69 70 74 static public HTMLDocument createBasicDocument() { 75 return createBasicDocument(""); 76 } 77 } 78 | Popular Tags |