Well-formed XML is not the same as valid XML
Separate the browser syntax result from schemas, signatures, and application rules.
ReadXML behavior explained
Three practical guides separate syntax, whitespace, and source markup so a readable result is not mistaken for broader validation.
Separate the browser syntax result from schemas, signatures, and application rules.
ReadWhy indentation is a transformation and which text XMLClear leaves untouched.
ReadSee which source constructs survive formatting and what that preservation cannot prove.
Read