1 16 package org.apache.wml.dom; 17 18 import org.apache.wml.*; 19 import org.w3c.dom.*; 20 import org.apache.xerces.dom.*; 21 22 27 public class WMLDOMImplementationImpl extends DOMImplementationImpl implements WMLDOMImplementation { 28 29 static final DOMImplementationImpl singleton = new WMLDOMImplementationImpl(); 30 31 32 public static DOMImplementation getDOMImplementation() { 33 return singleton; 34 } 35 36 39 public Document createDocument(String namespaceURI, 40 String qualifiedName, 41 DocumentType doctype) throws DOMException { 42 DocumentImpl doc = new WMLDocumentImpl(doctype); 43 Element e = doc.createElementNS( namespaceURI, qualifiedName); 45 doc.appendChild(e); 46 return doc; 47 } 48 } 49 50 | Popular Tags |