code: void emitParserOptions() throws SAXException {
          emitter.option("Automatically from Content-Type", "",
                  (parser == ParserMode.AUTO));
          emitter.option("HTML", "html", (parser == ParserMode.HTML));
          emitter.option("XML; don\u2019t load external entities", "xml",
                  (parser == ParserMode.XML_NO_EXTERNAL_ENTITIES));
          emitter.option("XML; load external entities", "xmldtd",
                  (parser == ParserMode.XML_EXTERNAL_ENTITIES_NO_VALIDATION));
      }
docs: @throws SAXException