code: @Override
  	public int nextTag() throws KriptonRuntimeException, IOException {
  		next();
  		if (type == TEXT && isWhitespace) {
  			next();
  		}
  
  		if (type != END_TAG && type != START_TAG) {
  			throw new KriptonRuntimeException("unexpected type", true, this.getLineNumber(), this.getColumnNumber(), getPositionDescription(), null);
  		}
  
  		return type;
  	}
docs: /* (non-Javadoc)
  @see com.abubusoft.kripton.xml.XmlPullParser#nextTag()