// Sends this object and its kids to a Writer with an indent of 2 spaces, // including the declaration at the top so that the output will be valid XML. public boolean write(PrintWriter output) { output.print(format(2)); output.flush(); return true; }