Format XML without changing its data model
This XML Formatter parses XML into a browser document model before creating readable output. It helps developers, analysts, testers, and technical writers inspect APIs, configuration files, feeds, sitemaps, schemas, SVG documents, and other XML-based formats.
Unlike a simple regular-expression formatter, the serializer understands elements, ordered attributes, namespaces, text nodes, CDATA sections, comments, processing instructions, document types, and empty nodes.
Mixed-content elements receive special handling. When readable text and child elements appear together, the formatter avoids injecting indentation that could change the element's textual meaning.
Private XML validation in your browser
Input is parsed locally and never submitted by this template. Entity declarations and external DTD references are rejected before parsing to reduce unsafe or unexpectedly expensive XML processing behavior.