Document doc = new DomDocument(this);
Document doc = createDocument();
  public Document createDocument(String namespaceURI,                                 String rootName,                                 DocumentType doctype)  {    Document doc = new DomDocument(this);    Element root = null;        if (rootName != null)      {        root = doc.createElementNS(namespaceURI, rootName);        if (rootName.startsWith("xmlns:"))          {            throw new DomDOMException(DOMException.NAMESPACE_ERR,                                      "xmlns is reserved", null, 0);          }      }    // Bleech -- L2 seemingly _requires_ omission of xmlns attributes.    if (doctype != null)      {        doc.appendChild(doctype);		// handles WRONG_DOCUMENT error      }    if (root != null)      {        doc.appendChild(root);      }    return doc;  }