public void process(Element element) { Elements children = element.getChildElements(); for (int i = 0; i < children.size(); i++) { process(children.get(i)); } }