public void addAbsenta(SituatieMaterieBaza sit, Node node) {
		TipAbsenta tip = null;
		Date data = null;
		NodeList childNodes = node.getChildNodes();
		for (int i = 0; i < childNodes.getLength(); i++) {
			Node cNode = childNodes.item(i);
			if (cNode instanceof Element) {
				String content = cNode.getLastChild().getTextContent().trim();
				
				switch (cNode.getNodeName()) {
				case "status":
					if (content.equals("motivata")) {
						tip = TipAbsenta.motivata;
					} else if (content.equals("nemotivata")) {
						tip = TipAbsenta.nemotivata;
					} else if (content.equals("nedeterminat")) {
						tip = TipAbsenta.nedeterminat;
					}
					break;
				case "data":
					try {
						SimpleDateFormat form = new SimpleDateFormat(
								"yyyy-MM-dd");
						Date d;
						d = form.parse(content);
						data = d;
					} catch (Exception e) {
						e.printStackTrace();
					}
				}
			}
		}
		sit.addAbsenta(tip, data);
	}