for those who tried the JAXB library, is there a way to create the file properly formatted? The output is a 1 line file, and it gives me big problems. >,<
//xml creation
JAXBContext ctx = null;
try {
ctx= JAXBContext.newInstance("Pojo");
Marshaller marshaller = ctx.createMarshaller();
marshaller.marshal(train, new File(xml_output_file_path));
}
catch (Exception e) {
e.printStackTrace();
}