What does prettifying XML mean?
Prettifying XML adds indentation and line breaks to make the hierarchical structure of a document readable. XML parsers treat all whitespace between tags as insignificant (unless specified otherwise), so prettified and compact XML are semantically equivalent.
Use prettified XML when reviewing API responses, debugging SOAP messages, reading configuration files, or inspecting RSS/Atom feeds. Use the indent selector to match your project's style — 2 spaces is compact, 4 spaces is more spacious for deeply nested documents.
How to prettify XML
- Paste your XML into the text area above.
- Choose 2-space or 4-space indentation from the indent selector.
- Copy the formatted result with the Copy button or
Ctrl+K.