What is the difference between well-formed and valid XML?
Well-formed XML follows the basic XML syntax rules. Valid XML also conforms to an external vocabulary or schema, such as a DTD or XSD.
Validate XML syntax, format tags, and detect unclosed or mismatched elements.
Processing Architecture: Client-Side (Processed locally in your web browser with zero server uploads)
Paste your raw XML code or upload an XML document.
The native DOMParser tests tree structure and validates tag pairs.
Copy the beautified, validated XML.
Well-formed XML follows the basic XML syntax rules. Valid XML also conforms to an external vocabulary or schema, such as a DTD or XSD.
The current tool metadata describes DOM-based syntax validation and formatting. XSD validation is listed as a separate future/pro capability rather than the core browser validator.
A raw `&` can begin an entity reference. When it is meant as ordinary text, it may need the appropriate escaped form.
Yes, SVG is XML-compliant and can be validated and formatted directly.