WORKED CASE · SYNTHETIC TEST DATA

Indent a small tree and retain its text

XML whitespace can be meaningful, so begin with a simple element-only example.

Input and settings

<root><item>Ada</item></root>

Run and interpret

Format and check nesting plus the Ada text. Retain the source if exact whitespace matters.

Expected output

<item>Ada</item>

Scope and possible misuse

DTD/entity declarations are rejected. Pretty-printing is not canonicalization and must not alter bytes before signature verification.

Unexpected result? Report a minimal example