code: private void checkInclusion()
          throws XMLStreamException
      {
          String keyword;
  
          // INCLUDE/IGNORE not allowed in internal subset...
          /* 18-Jul-2004, TSa: Except if it's in an expanded parsed external
           *   entity...
           */
          if (!mIsExternal && mInput == mRootInput) {
              _reportWFCViolation("Internal DTD subset can not use (INCLUDE/IGNORE) directives (except via external entities)");
          }
  
          char c = skipDtdWs(true);
          if (c != 'I') {
              // let's obtain the keyword for error reporting purposes:
              keyword = readDTDKeyword(String.valueOf(c));
          } else {
              c = dtdNextFromCurr();
              if (c == 'G') {
                  keyword = checkDTDKeyword("NORE");
                  if (keyword == null) {
                      handleIgnored();
                      return;
                  }
                  keyword = "IG"+keyword;
              } else if (c == 'N') {
                  keyword = checkDTDKeyword("CLUDE");
                  if (keyword == null) {
                      handleIncluded();
                      return;
                  }
                  keyword = "IN"+keyword;
              } else {
                  --mInputPtr;
                  keyword = readDTDKeyword("I");
              }
          }
  
          // If we get here, it was an error...
          _reportWFCViolation("Unrecognized directive '"+keyword+"'; expected either 'IGNORE' or 'INCLUDE'");
      }
docs: /*
  /////////////////////////////////////////////////////////
  Internal methods, conditional blocks:
  /////////////////////////////////////////////////////////