Element getElementByName(root, findElem){
List<Element> elems = root.elements()
for(Element el : elems){
if(el.getName()==findElem){
return el
}else if(!el.elements().isEmpty()){
Element e = getElementByName(el, findElem)
if(e != null) return e
}
}
return null
}