title: JAXB or Jackson for xml unmarshalling?
body: <p>Receiving an <code>XML</code> response, there are two main solutions decoding xml to a DTO object. Why should one prefer <code>JAXB</code> over <code>jackson</code>, or the other way around?</p>
  
  <p>JAXB:</p>
  
  <pre><code>Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
  XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xmlString));
  unmarshaller.unmarshal(reader, DtoObject.class);
  </code></pre>
  
  <p>Jackson:</p>
  
  <pre><code>mapper = new ObjectMapper() / new XmlMapper();
  mapper.readValue(xmlString, DtoObjectc.class);
  </code></pre>