ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Generating an XML Document with JAXB
Subject:   XML Document Format
Date:   2004-12-16 05:31:18
From:   dvohra09
To format the output XML document( with line breaks and indentation) set the Marshaller property jaxb.formatted.output.



marshaller.setProperty("jaxb.formatted.output", java.lang.Boolean.TRUE);