Introduce Parser::get/setDocumentType().