Format, validate and browse XML as a collapsible tree.
The XML Viewer formats or minifies XML, validates it and shows the document as a collapsible tree. Choose 2 or 4 spaces for indentation and see errors with a line and column. It suits developers working with config files, SOAP responses, RSS or sitemap documents.
XML (Extensible Markup Language) is a text format for structured, hierarchical data made of nested elements, attributes and text. A well-formed document has exactly one root element, every opening tag has a matching closing tag, tags nest properly, and attribute values are quoted. Unlike HTML, XML does not tolerate unclosed tags. Formatting adds indentation so the hierarchy is visible, while minifying removes whitespace between elements. A tree view makes deeply nested documents easier to navigate by letting you collapse sections.
No. It checks that the XML is well-formed only. XSD or DTD validation is not performed.
Whitespace between elements and indentation. Text content and attributes are kept.
Yes, comments are kept in formatted and minified output and appear in italic in the tree view.
If the input has a well-formedness error, the output pane stays empty and the error is shown instead.
Yes. In the tree view, click an element's line to collapse or expand its children.