Module org.jooq

Class XMLBuilder

java.lang.Object
org.jooq.util.jaxb.tools.XMLBuilder

@Internal public final class XMLBuilder extends Object
Wrapper around a StringBuilder which can be used to serialize a JAXB-annotated Java object graph to XML. The JAXB objects must however also implement the XMLAppendable interface for this to work.

Use formatting() to create an instance producing formatted XML output and nonFormatting() to produce XML without any formatting whitespace (i.e. everything on one line).

Author:
Knut Wannheden