1 57 package org.enhydra.apache.wml.dom; 58 59 import org.enhydra.apache.wml.WMLDOMImplementation; 60 import org.enhydra.apache.xerces.dom.DOMImplementationImpl; 61 import org.enhydra.apache.xerces.dom.DocumentImpl; 62 import org.w3c.dom.DOMException ; 63 import org.w3c.dom.DOMImplementation ; 64 import org.w3c.dom.Document ; 65 import org.w3c.dom.DocumentType ; 66 import org.w3c.dom.Element ; 67 68 72 73 public class WMLDOMImplementationImpl extends DOMImplementationImpl implements WMLDOMImplementation { 74 75 static DOMImplementationImpl singleton = new WMLDOMImplementationImpl(); 76 77 78 public static DOMImplementation getDOMImplementation() { 79 return singleton; 80 } 81 82 85 public Document createDocument(String namespaceURI, 86 String qualifiedName, 87 DocumentType doctype) throws DOMException { 88 DocumentImpl doc = new WMLDocumentImpl(doctype); 89 Element e = doc.createElementNS( namespaceURI, qualifiedName); 91 doc.appendChild(e); 92 return doc; 93 } 94 } 95 96 | Popular Tags |