hi ,
i am trying to add multiple DOMs to a xml File :

TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
DOMSource source = new DOMSource(document);
// Prepare the output file
Result result = new StreamResult(fileout);
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
transformer.transform(source, result);
but the result is everytime the last source is written and the old one are erased.
thanks