public _setDocumentType(doctype as DocumentType) as Void:
Sets the document type while building a document from a parser.
This is intentionally an internal-style API: regular DOM users should create documents through DOMImplementation.createDocument(...).
| Parameter | Description |
|---|---|
doctype | Document type declaration. |
document = XMLDocument()
document._setDocumentType(XMLDocumentType("root"))