Skip to content
BENIBIX Learn

Extensible Markup Language (XML)

Development📄 Files & FormatsData Formats

Also known as XML, XML file

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

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.

Example

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

Why it matters

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

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 code

xml
<person>
  <name>Emma</name>
  <age>36</age>
</person>
Each value sits between a start tag and an end tag.

Common mistake

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

Key takeaways

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

Compare

Learn it properly