protected ElementInfo getElementFromPath(ElementInfo oldDocElement,
			List<ElementInfo> paths) {
		if (paths == null || paths.isEmpty()) {
			return null;
		}
		if(paths.size()==1){
			return oldDocElement;
		}
		ElementInfo parent = oldDocElement;
		for (int j = 1; j < paths.size(); j++) {
			ElementInfo path = paths.get(j);
			List<Element> children=XmlUtil.getAllChilds(parent.getElement(), null);
			boolean found = false;
			for (Element node:children) {
					if (XmlUtil.areElementsEqual(node, path.getElement())) {
						found = true;
						parent = getElementInfo(node);
						break;
					}
			}
			if (!found && j<paths.size()-1) {
				return null;
			}
		}

		return parent;
	}