/** * <p> * This will create an <code>XMLOutputter</code> with * a two-space indent and new lines on. * </p> */ public XMLOutputter() { namespaces = new LinkedList(); } As coded the actual default is no newlines and no indent