Creative agency glossaryWeb, UX/UI, and Design

XML (eXtensible Markup Language)

XML (eXtensible Markup Language) is a text format for structuring data with custom tags, so that information can be stored and exchanged between systems in a form both people and machines can read.

What is XML (eXtensible Markup Language)?

XML looks like HTML's stricter cousin. Data is wrapped in tags, an opening tag and a closing one, nested inside each other, but the tags are not fixed: whoever designs the format invents them. A product feed might use tags called product, name, price and image; a sitemap uses url, loc and lastmod. The rules are strict (every tag must close, the nesting must be correct, the document must be well-formed) so that any software can read it reliably. It became a W3C standard in 1998.

For a decade XML was the default way for systems to exchange data, and it is still everywhere, often unseen. XML sitemaps tell search engines about a site's pages. RSS, Atom and podcast feeds are XML. SVG images are XML. Word, Excel and PowerPoint files are zipped folders of XML. And in post-production, an edit often travels from one application to another as an XML timeline.

Why it matters

Why XML matters

Most people working on a website meet XML through the things it carries rather than the language itself, and those things matter. The XML sitemap is one of the main ways a site tells search engines what exists and what has changed. Feeds built on XML syndicate content, power podcasts and send product catalogs to shopping platforms. Many business systems, from finance to publishing, still exchange data in XML. And when any of these files is malformed, a single unclosed tag can stop the whole thing from being read, quietly, with no error anyone sees.

In practice

How XML works in practice

  1. 01

    On most sites, XML files are generated automatically. A content management system or SEO plugin produces the sitemap and the feeds from the site's content, and e-commerce platforms generate product feeds. The team's job is configuration: which pages belong in the sitemap and which do not, what each feed includes, and making sure the files are listed where search engines and partners expect them, such as the sitemap's address in robots.txt.

  2. 02

    Then the files are checked, because generators make mistakes. A sitemap is submitted in Google Search Console, where errors and excluded pages are reported. Feeds are run through validators before launch and after any change to the templates that produce them. When XML is exchanged with another system, the format is documented with a schema, which defines the allowed tags and structure so both sides can test against the same rules.

Watch out

What people get wrong about XML

Thinking it is obsolete because newer systems prefer JSON. JSON did take over most web APIs, but XML still runs sitemaps, feeds, documents and countless business integrations, and is not going anywhere. Second, editing generated XML by hand, so the next automatic update overwrites the fix. Third, ignoring encoding: an unescaped ampersand or a stray character in a copied product name is enough to make a whole feed invalid, which is why content going into XML is cleaned on the way in.

Questions

People also ask

What is the difference between XML and HTML?

HTML has a fixed set of tags for displaying content in a browser. XML lets you define your own tags to describe data, and says nothing about how it should look. HTML is for presentation; XML is for structure and exchange.

What is XML used for on websites?

Mainly sitemaps, which list a site's pages for search engines, and feeds, such as RSS for articles and podcasts or product feeds for shopping platforms. SVG graphics are also XML, as are many configuration and data exchange files.

Is XML better than JSON?

Neither is better in general. JSON is lighter and more natural for web applications and APIs, while XML is stronger for documents, mixed content and formats that need strict validation against a schema. Many systems use both.

Next to it in the glossary

  1. Web AccessibilityWeb accessibility is the practice of designing and building websites so that people with disabilities, including visual, hearing, motor and cognitive disabilities, can perceive, use and understand them.
  2. Web DesignWeb design is the practice of planning and creating how a website looks, how it is organized and how it works for the people who use it, from layout and typography to navigation and interaction.
  3. Webflow DevelopmentWebflow development is building websites on Webflow, a visual platform that lets designers lay out a site on a canvas and generates production-ready code from what they draw.
  4. Website DevelopmentWebsite development is the full process of building a website, from planning and design through coding, content, testing and launch to the maintenance that keeps it running.
  5. WordPress DevelopmentWordPress development is the building of websites on the WordPress content management system, from custom themes and plugins to the hosting, performance and security that keep them running.
  6. XSL (eXtensible Stylesheet Language)XSL (eXtensible Stylesheet Language) is a family of W3C languages for transforming and formatting XML documents, turning raw structured data into web pages, PDFs or other formats.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage