When to pretty-print, when to minify
- Pretty for debugging — reading server responses, diffing config files, code review.
- Minify for transport — embedding XML in JSON, fitting under URL limits, reducing payload size when gzip isn't available.
- Neither for production storage — most XML tooling doesn't care about whitespace. Keep it formatted however your editor prefers.