XML formatter
Format XML and check it is well-formed.
Format XML and check it is well-formed.
// Runs in your browser. Nothing you type here is sent anywhere.
Well-formed XML: 12 elements, 8 attributes, 4 levels deep.
This checks that the document is well-formed. It does not validate it against a schema or DTD.
<?xml version="1.0" encoding="UTF-8"?>
<order id="1042" xmlns="urn:example:orders">
<customer>
<name>Ada Lovelace</name>
<email>ada@example.com</email>
</customer>
<lines>
<line sku="A-1" quantity="2">
<description>Coffee & tea</description>
<price currency="EUR">4.50</price>
</line>
<line sku="B-7" quantity="1">
<description>Mug</description>
<price currency="EUR">9.95</price>
</line>
</lines>
<note/>
</order>