createDocumentType

fun createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType(source)

MDN Reference