# Extensible Markup Language (XML)

> A text format that wraps data in named tags. Wordy, but still common in older systems.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** XML, XML file

## Think of it like

Think of it like boxes with name tags inside boxes. Each box says what it holds, on the lid and at the end.

## Definition

XML is a text format that wraps each piece of data in named tags. A tag looks like <name>Emma</name>, and tags can sit inside other tags. It is wordier than JSON, because every tag is written twice. It is still used in office files, RSS feeds, Android layouts and many older business systems. HTML looks similar, but HTML is for pages and XML is for data.

## Example

A bank in Zurich sends its daily payment file to another bank as XML. Each payment sits inside its own set of tags.

## Example code

```xml
<person>
  <name>Emma</name>
  <age>36</age>
</person>
```

Each value sits between a start tag and an end tag.

## Why it matters

Lots of systems still speak XML. You will meet it in files, feeds and older APIs.

## Common mistake

Forgetting a closing tag. XML is strict, and one missing tag makes the whole file unreadable.

## Three principles

- **Named tags.** Each value is wrapped in a label.
- **Nests deeply.** Tags can hold other tags.
- **Wordy but strict.** Every tag must be closed.

## Related terms

- [JavaScript Object Notation (JSON)](https://learn.benibix.com/term/development/json)
- [YAML Ain't Markup Language (YAML)](https://learn.benibix.com/term/development/yaml)
- [Comma-Separated Values (CSV)](https://learn.benibix.com/term/development/csv)
- [Syntax](https://learn.benibix.com/term/development/syntax)

## Told apart from

- [JSON vs XML](https://learn.benibix.com/compare/json-vs-xml): Both hold data as plain text. JSON uses names and curly brackets; XML wraps each value in tags, which makes it longer.

## Taught in

- [JSON, XML and CSV](https://learn.benibix.com/learn/development-formats/json-xml-and-csv): File Formats, 3/11

---

Source: https://learn.benibix.com/term/development/xml
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
