Question:
How to eliminate unnecessary white space characters from the serialized XML while using Simple framework?
Details:
Let's consider this very basic example from the Simple framework website. The XML output is:
<example index="123">
<text>Example message</text>
</example>
How do I instruct the serializer to output this instead?
<example index="123"><text>Example message</text></example>
I checked the org.simpleframework.xml.stream.Style
interface, but it only seems to be able to work on individual element and attribute names and not the content.