How to use XML Formatter
How do I use it?
- Paste XML, select beautification, compression or authentication.
- Formats by selecting indents and then copying or downloading the results.
How it works and example
Checks the document first with the browser XML solver. Only the level of elemental content is re-indented, and the paragraph containing the inline text or CDATA keeps the internal blank.
<root> <item> A </item> </root> Only one line is given to item after formatting, by default indent two spaces.
Input limits
- Checks whether XML is well constructed. Processing is limited to XML that does not require DTD; DOCTYPE declarations are rejected. xml:space= "preserve" remains as it is.