Format output to xhtml indented properly