What Is XML?
XML (Extensible Markup Language) is a text format for representing hierarchical, structured data using tags you define yourself. Unlike HTML, XML has no predefined tags — you create a vocabulary suited to your data. It underlies SVG, RSS, SOAP, XHTML, and countless enterprise configuration formats.
The One-Line Definition
XML is a W3C-defined text format that uses opening and closing tags to represent hierarchical data. It is both human-readable and machine-parseable, and supports attributes, namespaces, comments, and a schema system (XSD).
XML Syntax Rules
<?xml version="1.0" encoding="UTF-8"?>
<users>
<user id="42" active="true">
<name>Ada Lovelace</name>
<email>ada@example.com</email>
<roles>
<role>admin</role>
<role>editor</role>
</roles>
</user>
</users>XML vs JSON
Where XML Is Used Today
Format or Convert XML Now
Paste any XML into SmartDevBox and it is formatted instantly. XML Formatter → · XML to JSON →
Frequently Asked Questions
What is the difference between XML and JSON?
JSON is more compact and maps to language types. XML supports attributes, namespaces, comments, and mixed content — making it more expressive but more verbose. JSON dominates REST APIs; XML is common in SOAP, SVG, and config files.
What is an XML namespace?
A URI that uniquely identifies a vocabulary of element names, preventing conflicts when combining XML from different sources. Declared with xmlns:prefix="uri".
How do I format XML online?
Paste your XML into SmartDevBox. It auto-detects XML and pretty-prints it. Invalid XML triggers an error report.