XML299 chars · 299 bytes
1234
✓ Valid
Formatted XML
331 bytes (+11% vs input)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note SYSTEM "n.dtd">
<catalog xmlns:x="urn:x">
<book id="1" lang='en'>
<title>A & B</title>
<price cur="USD">9.99</price>
<empty/>
<note>Hi <b>there</b> friend</note>
<![CDATA[ <raw> ]]>
</book>
<book id="2">
<title>Two</title>
</book>
</catalog>Pretty-print XML with proper nesting · runs in your browser, nothing is uploaded