Format or minify XML
Paste a document and press Format to indent every element on its own line, or Minify to strip the whitespace between tags back out. Comments and processing instructions are given their own line; CDATA deliberately is not, because it is text — putting it on its own line would insert a newline and an indent into the element’s own content. Minifying a formatted document gives back exactly what minifying the original would, which is the property that keeps the two operations honest.