title: JABX xml written on a single line. How do i format
body: <p>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. >,&lt;</p>
  
  <pre><code>//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();
      }
  </code></pre>