Why indentation can corrupt XML
In <root><item> </item></root>, the two spaces inside item are text. Replacing them with a newline and indentation changes the value. Even <root><a/><b/></root> gains new whitespace text nodes when pretty-printed without a schema. The validator therefore leaves the downloaded XML unchanged.
What is checked
It checks matching tags, one root, quoted attributes, duplicate attributes, namespace declarations, invalid entity references and XML 1.0 character rules. DOCTYPE and external entities are rejected, not fetched. The XML declaration must specify UTF-8 if it declares an encoding.
How to verify the result
Upload a UTF-8 XML file, validate it, then compare the downloaded file byte for byte with the original. BOM, CRLF, tabs, CDATA and whitespace-only nodes remain identical. For applications requiring pretty printing, use a schema-aware XML editor and review whitespace semantics.
Limits and related conversions
The local tool accepts up to 10 MB of UTF-8 input and 12 million decoded characters; it does not validate against a DTD or XSD. If a structural conversion is appropriate, try XML to JSON or JSON to XML, which have stricter mapping limitations.