code: protected void reportInvalidContent(int evtType)
          throws XMLStreamException
      {
          switch (mVldContent) {
          case XMLValidator.CONTENT_ALLOW_NONE:
              reportValidationProblem(ErrorConsts.ERR_VLD_EMPTY,
                                      getTopElementDesc(),
                                      ErrorConsts.tokenTypeDesc(evtType));
              break;
          case XMLValidator.CONTENT_ALLOW_WS:
              reportValidationProblem(ErrorConsts.ERR_VLD_NON_MIXED,
                                      getTopElementDesc());
              break;
          case XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT:
          case XMLValidator.CONTENT_ALLOW_ANY_TEXT:
              /* Not 100% sure if this should ever happen... depends on
               * interpretation of 'any' content model?
               */
              reportValidationProblem(ErrorConsts.ERR_VLD_ANY,
                                      getTopElementDesc(),
                                      ErrorConsts.tokenTypeDesc(evtType));
              break;
          default: // should never occur:
              reportValidationProblem("Internal error: trying to report invalid content for "+evtType);
          }
      }
docs: /*
  /////////////////////////////////////////////////////////
  Package methods, output validation problem reporting
  /////////////////////////////////////////////////////////