A worked example, rendered from real sample data. Sign in to run the tool on your own input.
<?xml version="1.0"?>
<catalog>
<book id="1">
<title>Developer Tools</title>
<author>John Doe</author>
</book>
<book id="2">
<title>Web Development</title>
</catalog>Document 6 elements, 2 attributes, depth 3
Schema none supplied — checking well-formedness only
Errors (3):
✗ 9:1 /catalog
Mismatched closing tag </catalog> — <book> opened at line 7 is still open
✗ 2:1 /catalog
<catalog> is never closed
✗ 7:3 /catalog/book[2]
<book> is never closed
Validate XML against basic XSD schema rules. Part of the DevTools Surf developer suite. Browse more tools in the XML collection.