def create_doc_without_doctype(doctype=None): return getDOMImplementation().createDocument(None, "doc", doctype)