List<String> (Element element, String rootName, String attrName) { final List<String> paths = new LinkedList<>(); if (element != null) { final List<Element> list = element.getChildren(rootName); for (Element e : list) { paths.add(e.getAttribute(attrName).getValue()); } } return paths; }