Collapse XML to a single compact line.
Strip comments and the whitespace between elements from XML, SVG, RSS and sitemap files. Text inside elements and CDATA sections is preserved.
Is the result still valid XML?
Yes. Only insignificant whitespace and comments are removed, and the document is checked for well-formedness first.
XML Minifier runs in your browser, so there is no server call for it. API docs covers the tools you can call from code.