What it can do
- Parse XML structure
- Indent child elements
- Preserve attributes and text
How the recipe works
XML Beautify
Read the XML tree and emit it with two-space indentation.
Demonstration
Sample input
<root><item id="1">alpha</item><item id="2">beta</item></root>Expected result
A multi-line XML document with indented item elements.When to use it
- SOAP and SAML debugging
- Configuration inspection
- Making diffs readable
Adapt it
Use XML Minify to remove presentation whitespace after review.
Source and verification
Adapted from GCHQ CyberChef Node API examples. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.