使い方
- Paste your XML document into the input.
- Choose Pretty-print to indent the tree or Minify to collapse it to a single line.
- The document is validated with the browser's DOMParser, and any syntax error is reported with its location.
- Copy the result; everything is processed in your browser.
例
- Pasting <root><item id="1">a</item><item id="2">b</item></root> and pretty-printing nests each <item> on its own indented line under <root>.
- If a closing tag is missing, the DOMParser check reports the line and column of the error so you can fix malformed XML quickly.