code: public void setMode(final ParsingMode mode) {
          this.mode = mode;
          if (ParsingMode.HTML.equals(this.mode)) {
              // We can never use HTML parsing in case-sensitive mode
              this.caseSensitive = false;
          }
      }
docs: <p>
  Specify the parsing mode to be used. Can be <strong>XML</strong> or <strong>HTML</strong>.
  </p>
  <p>
  Depending on the selected mode parsers will behave differently, given HTML has some specific
  rules which are not XML-compatible (like void elements which might appear <em>unclosed</em> like
  <tt>&lt;meta&gt;</tt>.
  </p>
  
  @param mode the parsing mode to be used.