XML
Validate and pretty-print XML.
Reset
Copy
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<book id="bk101">
<author>Alice</author>
<title>Renderhub Reference</title>
<year>2026</year>
</book>
<book id="bk102">
<author>Bob</author>
<title>SSG Patterns</title>
<year>2025</year>
</book>
</catalog>
Tips
- Pretty-print rewrites the document with consistent indentation.
- Validation runs in your browser via
DOMParser.