Roufid

Jaxb marshal to String

Java

When working with JAXB, sometimes you want a String representation of your XML. This tutorial will show how to JAXB marshal to String.

Below the code of marshaling to String.