Match manual = $(isXML);
for (Match section : manual.find("section").each()) {
Match sections = section.add(section.parents("section")).reverse();
String path = StringUtils.join(sections.ids(), "/");
String relativePath = StringUtils.join(Collections.nCopies(sections.size(), ".."), "/") + "/";
File dir = new File(path);
dir.mkdirs();
System.out.println("Transforming section " + path);