Skip to main content

Organize XML indentation or compress typesetting whitespace in the browser, support attributes and comments. Provides examples and copy functionality to clearly indicate the risk of whitespace in mixed text content and does not load external entities.

Comments are retained, but formatting whitespace may change; check for whitespace in XML with mixed text content. Reject DTDs and custom entities.

57 / 50,000 characters

Shortcut key: Ctrl/⌘+Enter. Modifying inputs or options clears old results.

Instructions for use

  1. Paste a single XML document, or load a sample of attributes and comments.
  2. Choose indentation, direct formatting or compression.
  3. Check for whitespace in mixed text and use the results in the target program.

Input and output examples

Example input
<root><id>00123</id></root>
Example output
<root> <id>00123</id> </root>

00123 is text, and typesetting will not treat it as a number.

FAQ

Not necessarily. Typesetting white space between elements may be removed; documents containing mixed text and sub-elements should check the white space and retain the original document.

Not supported, DTDs and custom entities in input are rejected. The tool does not request external documents or entities; input is limited to 50,000 characters.

Calculation basis and reference materials

Clean up indentation and whitespace after checking XML syntax, and reject DTDs and custom entities. For mixed text content, changes in white space may affect the meaning, and should be checked with the original text after compression.

Content check: · About this site and content description

Related tools