John writes: > XMLOutputter xout = new XMLOutputter(" ", true, "UTF-8"); This indents all lines, even those that contain all whitespace. You probably also want to setTextTrim(true) to get to output the way you want. Brad