What is a XML file?

XML — tagged data

What is it?

XML structures data using tags, much like HTML, but without a fixed vocabulary: you define your own tags and their meaning.

It can describe highly complex structures, validate them against a schema, and guarantee that a file conforms to the expected format — a level of rigor that JSON doesn't offer natively.

History & origin

The W3C published the XML specification in 1998, at a time when it was expected to become the universal format for all data exchange.

That prophecy never came true for web interfaces, where JSON overtook it thanks to its lighter weight. But XML is far from dead: it forms the backbone of DOCX files, SVG, RSS feeds, and countless enterprise systems.

Why it is useful

Strict schema validation, namespaces to avoid naming collisions, and the ability to describe arbitrarily complex structures.

It's exceptionally well supported by tooling and remains indispensable in large-scale systems.

Limits & drawbacks

Its verbosity is legendary: every piece of data is wrapped in opening and closing tags, which can easily triple file size compared to JSON.

It's tedious to read and write by hand.

Practical tips

To work with XML data in a modern application, convert it to JSON: you'll cut the file size and simplify processing.

One caveat: XML attributes have no direct equivalent in JSON, so automatic conversion can produce an unexpected structure. Always check the result.

Convert your XML in seconds, on our secure servers in France.

Convert a XML