code: @Override
      public void skipElement() throws XMLStreamException
      {
          if (mCurrToken != START_ELEMENT) {
              throw new IllegalStateException(ErrorConsts.ERR_STATE_NOT_STELEM);
          }
          int nesting = 1; // need one more end elements than start elements
  
          while (true) {
              int type = next();
              if (type == START_ELEMENT) {
                  ++nesting;
              } else if (type == END_ELEMENT) {
                  if (--nesting == 0) {
                      break;
                  }
              }
          }
      }
docs: // // StAX2, additional traversal methods