- What does XML minification strip?
- Whitespace between tags and inside empty elements. Content inside text nodes is preserved; CDATA and comments are kept by default (configurable).
- How does this compare to gzip?
- Minification shrinks the file before compression. Useful when you can't gzip (SOAP payloads over some transports, embedded XML inside other formats).
- Will the minified XML parse the same way?
- Yes for attribute and element content. If your application's XPath relies on whitespace-only text nodes, those disappear — uncommon but possible.
- Can I re-expand it later?
- Yes — run the XML Formatter on the minified output. Minification is lossless for the structural parts.