public Element getElementWithAttribute(String attribute, String value, String tagName){
		NodeList dbs=null;
		if(this.current==null){
			dbs = xmlFile.getElementsByTagName(tagName);
		}
		else{
			dbs  = current.getElementsByTagName(tagName);
		}
		Element element = null;
		for(int i=0; i<dbs.getLength(); i++){
			element=(Element)dbs.item(i);
			if(element.getAttribute(attribute).equals(value)){
				break;
			}
			else if(i==dbs.getLength()-1){
				return null;
			}
		}
		return element;
		
	}