def root = new XmlSlurper().parse(...) def loc = root.result[0].elem1.elem2