title: Format XML with JAXB during unmarshal
body: <p>I want to format a XML document during unmarshal with JAXB.
  Unmarshal looks like:</p>
  
  <pre><code>Unmarshaller u = createAndsetUpUnmarshaller(enableValidation, evtHandler, clazz);
  return u.unmarshal(new ByteArrayInputStream(stringSource.getBytes()));
  </code></pre>
  
  <p>While marshaling one can format the code via:</p>
  
  <pre><code>marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
  </code></pre>
  
  <p>But this isn´t possible for the unmarchal process... Any idea how I can format the XML string with JAXB during (or after) unmarshal process?</p>
  
  <p>BTW: I read some posts here about pretty print, but I want to do it with JAXB!</p>