I am trying to marshal
java object into XML. i want to marshal java object into XML while it inside the for loop.
for(i=0;i<=2;i++){
........................
...........................
...........................
jaxbMarshaller.marshal(details, xmlFile);
}
for the above code it's overwriting in the XML file after completion of each loop . but i want to write in new line after completion of each loop. Please let me know , how to do?