Skip to content

Instantly share code, notes, and snippets.

@matheustardivo
Created April 13, 2012 11:54
Show Gist options
  • Save matheustardivo/2376326 to your computer and use it in GitHub Desktop.
Save matheustardivo/2376326 to your computer and use it in GitHub Desktop.
JAXB Marshaller snippet
JAXBContext jaxbContext = JAXBContext.newInstance(Profile.class);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(profile, System.out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment