code: private int closeContentTree()
          throws XMLStreamException
      {
          mParseState = STATE_EPILOG;
          // this call will update the location too...
          if (nextFromProlog(false)) {
              mSecondaryToken = 0;
          }
          /* 10-Apr-2006, TSa: Let's actually try to update
           *   SymbolTable here (after main xml tree); caller
           *   may not continue parsing after this.
           */
          if (mSymbols.isDirty()) {
              mOwner.updateSymbolTable(mSymbols);
          }
          /* May be able to recycle, but not certain; and
           * definitely can not just clean contents (may
           * contain space(s) read)
           */
          mTextBuffer.recycle(false);
          return mCurrToken;
      }
docs: Method called when advacing stream past the end tag that closes
  the root element of the open document.
  Document can be either the singular one, in regular mode, or one of
  possibly multiple, in multi-doc mode: this method is never called
  in fragment mode. Method needs to update state properly and
  parse following epilog event (if any).
  
  @return Event following end tag of the root elemennt, if any;
  END_DOCUMENT otherwis.e