I\'d like to serialize some simple data model into xml, I\'ve been using the standard java.org.w3c -related code (see below), the indentation is better than no \"OutputKeys.INDE
If the Transformer implementation you're using is Xalan-J, then you should be able to use:
transformer.setOutputProperty( "{http://xml.apache.org/xslt}indent-amount", "5");
See also: http://xml.apache.org/xalan-j/usagepatterns.html