void (Element parent) { Element rootChild = new Element(ROOT_ELEMENT); rootChild.setAttribute(INDEX_ATTRIBUTE, String.valueOf(myIndex)); rootChild.setAttribute(PATH_ATTRIBUTE, myRelativePath); parent.addContent(rootChild); }