code: public boolean nextInnerElement(ElementContext parent) throws XMLException, IOException {
  		if (event.context.isEmpty()) return false;
  		if (Type.START_ELEMENT.equals(event.type) && event.context.getFirst() == parent && event.isClosed)
  			return false; // we are one the opening tag of the parent, and it is closed, so it has no content
  		if (Type.END_ELEMENT.equals(event.type) && event.context.getFirst() == parent)
  			return false;
  		try {
  			do {
  				next();
  				if (Type.END_ELEMENT.equals(event.type)) {
  					if (event.context.getFirst() == parent)
  						return false;
  				}
  				if (Type.START_ELEMENT.equals(event.type)) {
  					if (event.context.size() > 1 && event.context.get(1) == parent)
  						return true;
  				}
  			} while (true);
  		} catch (EOFException e) {
  			return false;
  		}
  	}
docs: Go to the next inner element. Return true if one is found, false if the closing tag of the parent is found.