public void endElement( String uri, String localName, String qName ) {

		// recognized text is always content of an element
		// when the element closes, no more text should be expected
		isStackReadyForText = false;

		// pop stack and add to 'parent' element, which is next on the stack
		// important to pop stack first, then peek at top element!
		Object tmp = stack.pop();

		if( localName.equals( "TSeq_gi" ) ) {
			gi = tmp.toString();
		}else if(localName.equals("TSeq_taxid")){
			taxid = tmp.toString();
		}else if(localName.equals("TSeq_orgname")){
			orgname = tmp.toString();
		}else if(localName.equals("TSeq_defline")){
			defline = tmp.toString();
		}else if(localName.equals("TSeq_length")){
			length = tmp.toString();
			if(Integer.valueOf(length) > lengthlim)
				dontread = true;
			else
				dontread = false;
			//System.out.println(length);
		}else if(localName.equals("TSeq_sequence")&& dontread == false){
			if(dontread == false){
				sequence = tmp.toString();
				printall();
			}
		}
		else{
			stack.push( tmp );
		}
	}