---
title: "createDocument(_:qualifiedName:doctype:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domimplementation/createdocument(_:qualifiedname:doctype:)"
---

# createDocument(_:qualifiedName:doctype:)

## Declaration

```swift
func createDocument(_ namespaceURI: String!, qualifiedName: String!, doctype: DOMDocumentType!) -> DOMDocument!
```
