[JDOM] XML to FILE
import java.io.FileWriter; import java.io.IOException; import org.jdom.Attribute; import org.jdom.Document; import org.jdom.Element; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; public class WriteXMLFile { public static void main(String[] args) { try { Element company = new Element("company"); Document doc = new Document(company); doc.setRootElement(company); Element staff..