---
title: "What is XML?"
term: "XML"
description: "XML (Extensible Markup Language) is a W3C standard markup language and file format for storing and exchanging structured data in a form that both people and machines can read."
url: "https://glossary.io/xml/"
published: "2026-11-22T20:48:02.974Z"
updated: "2026-11-22T20:48:02.974Z"
aliases:
  - "Extensible Markup Language"
topics:
  - "Web development"
  - "Web standards and protocols"
wikidata: "https://www.wikidata.org/wiki/Q2115"
---

# What is XML?

**Definition:** XML (Extensible Markup Language) is a W3C standard markup language and file format for storing and exchanging structured data in a form that both people and machines can read.

**Also known as:** Extensible Markup Language

XML became a W3C Recommendation in 1998 as a simpler subset of SGML. Unlike [HTML](https://glossary.io/html/), it has no fixed set of tags: authors define their own elements and attributes to describe their data, and schemas can enforce a structure. A document must be well-formed, with properly nested and closed tags, or XML parsers will reject it.

XML underpins many web formats, including [RSS](https://glossary.io/rss/) and Atom feeds, XML sitemaps, SVG graphics, XHTML and the EPUB ebook format, and it was long the main format for web services and data exchange. [JSON](https://glossary.io/json/) has since replaced it in many APIs because it is lighter and maps directly to JavaScript objects, but XML remains common in publishing, finance and enterprise systems.

## XML resources

- [Official website](http://www.w3.org/XML)
- [XML on Wikipedia](https://en.wikipedia.org/wiki/XML)

## Related terms

- [HTML](https://glossary.io/html/)
- [interoperability](https://glossary.io/interoperability/)
- [JSON](https://glossary.io/json/)
- [RSS](https://glossary.io/rss/)
- [XHTML 1.1](https://glossary.io/xhtml-1-1/)

## Compare

- [JSON vs. XML](https://glossary.io/compare/json-vs-xml/): JSON is a compact data format of objects, arrays and basic types that maps directly to most programming languages. XML is a more verbose markup language with elements, attributes, namespaces and mature schema and transformation tools. JSON suits most APIs; XML suits documents and XML standards.

**Topics:** [Web development](https://glossary.io/topics/web-development/), [Web standards and protocols](https://glossary.io/topics/web-standards/)

## Cite this definition

- APA: What is XML? (2026, November 22). Glossary. https://glossary.io/xml/
- MLA: “What Is XML?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/xml/.
- Chicago: “What Is XML?” Glossary. Coywolf. November 22, 2026. https://glossary.io/xml/.

Published November 22, 2026.
