Created
          April 13, 2012 11:54 
        
      - 
      
- 
        Save matheustardivo/2376326 to your computer and use it in GitHub Desktop. 
    JAXB Marshaller snippet
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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