code: public boolean searchElement(String elementName) throws XMLException, IOException {
  		try {
  			do {
  				if (Type.START_ELEMENT.equals(event.type)) {
  					if (event.text.equals(elementName))
  						return true;
  				}
  				next();
  			} while (true);
  		} catch (EOFException e) {
  			return false;
  		}
  	}
docs: Move forward until an element with the given name is found (whatever its depth).
  @return true if found, false if the end of file is reached.