private int getIntFromElement(Element ele, SPSelector sel) {
		
		Elements els = subSelect(ele, sel.getSelector());
		if(els.size() == 0) {
			return -1;
		}
		
		String text = els.get(0).outerHtml();
		Modifier mod = sel.getModifier();
		if(mod != null) {
			text = mod.getResult(text);
		}
		
		int res = -1;
		try {
			res = Integer.parseInt(text);
		}
		catch(NumberFormatException e) {
			return -1;
		}
		return res;
	}