public readonly property doctype as DocumentType
Current document type child, or null when the document has none. Reflects insertions, replacements and removals through the Node API.
document = XMLDocument(null, XMLDocumentType("root"))
assert document.doctype is document.firstChild