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

		String elmt = "";
		qName = qName.toLowerCase();
		if (qName.contains(":")) {
			buffer.append(qName.substring(0, qName.indexOf(":") + 1));
			qName = qName.replace(buffer.toString(), "");
			buffer.delete(0, buffer.capacity());
		}

		if (branche.endsWith(qName + "" + ".")) {
			branche = branche.substring(0, branche.length() - qName.length()
					- 1);
			// branche = branche.toLowerCase();
			elmt = xPaths.elementAt(xPaths.size() - 1);
			xPaths.removeElementAt(xPaths.size() - 1);
			// System.out.println("--------End element-----");
			// System.out.println(elmt);
		}

		boolean controlFlag = false;

		if (all == false) {
			if (contains(elements2Analyze, elmt)) {
				doCalculations(elmt);
				controlFlag = true;
			}
			if (contains(elementsVocs, elmt) && controlFlag == false) {
				try {

					// repositoryHandler.addEvalue2File(elmt, tmpValue);

					if (!tmpValue.toString().equals(""))
						repositoryHandler.addVoc(elmt, tmpValue);
					else
						repositoryHandler.addVoc(elmt, "empty");

				} catch (NullPointerException e) {
					// TODO: handle exception

					// repositoryHandler.addEvalue2File(elmt, "");
					repositoryHandler.addVoc(elmt, "empty");
				}
			}

		} else {

			doCalculations(elmt);

		}

	}