6364656667686970717273
for (int i = 0; i < children2.size(); i++) { Element el2 = (Element)children2.get(i); Element el2Clone = (Element)el2.clone(); el2Clone.detach(); root1.add(el2Clone); } organizeXML(mergedDoc);
156157158159160161162163164165166
} for (int i = 0; i < duplicates.size(); i++) { Element duplicate = (Element)duplicates.get(i); duplicate.detach(); } Iterator itr = originals.iterator(); while (itr.hasNext()) {
184185186187188189190191192193194
elements.addAll(parent.elements(orderedChildrenNames[i])); } for (int i = 0; i < elements.size(); i++) { Element el = (Element)elements.get(i); el.detach(); parent.add(el); } } private XMLDescriptor _descriptor;