*/
public static OutputFormat getOutputFormat(final AbstractProperties properties) {
boolean indent = properties.getBoolean(XMLProperties.USE_INDENTATION, false);
OutputFormat format = getSerializerFactory(
properties.getString(XMLProperties.SERIALIZER_FACTORY)).getOutputFormat();
format.setMethod(OutputFormat.XML);
format.setIndenting(indent);
// There is a bad interaction between the indentation and the
// setPreserveSpace option. The indentated output is strangely indented.
if (!indent) {
format.setPreserveSpace(true);
}
return format;
} //-- getOutputFormat