code: public int validateEndElement()
          throws XMLStreamException
      {
          if (mValidator == null) { // should never be null if we get here
              return XMLValidator.CONTENT_ALLOW_ANY_TEXT;
          }
          int result =  mValidator.validateElementEnd
              (mCurrElement.mLocalName, mCurrElement.mNamespaceURI, mCurrElement.mPrefix);
          if (mDepth == 1) { // root closing
              mValidator.validationCompleted(true);
          }
          return result;
      }
docs: Method called after parsing (but before returning) end element,
  to allow for pluggable validators to verify correctness of
  the content model for the closing element.
  
  @return Validation state that should be effective for the parent
  element state