public boolean hasVariableAttribute(Element root, String varName, String attributName){
		Namespace ns = root.getNamespace();
		
		Element variables  = root.getChild("variables", ns);
		boolean exists = false;
		
		for (int i=0; i < variables.getChildren().size(); i++){
			Element variable  = (Element)variables.getChildren().get(i);
						
			if (variable.getAttributeValue("name").equals(varName)){
				if (variable.getAttribute(attributName) != null){
					exists = true;
				}
			}
		}
		return exists;
	}