XML format guide

Sample XML files

Small sample XML files with typed elements, nested objects, arrays, escaped markup and xsi:nil for null values. Use them to test XML parsers, mappers and importers. Pick a whole collection (3 users, 2 projects or 3 tasks) or a single record. The 11 files range from 427 B to 2.9 KB.

No account or API key is needed. A published v1 file never changes, its SHA-256 is listed in the manifest, and the data is CC0, so you can also commit a copy to your own repository.

application/xml; charset=utf-8

Use it

Request an asset

Browser

const response = await fetch("/v1/projects.xml");
const payload = await response.text();

curl

curl -fsS https://payloads.mochavi.com/v1/projects.xml

Python

from urllib.request import urlopen

with urlopen("https://payloads.mochavi.com/v1/projects.xml") as response:
    payload = response.read()

Published files

11 stable URLs

Open explorer
PathMedia typeSize
/v1/projects.xmlapplication/xml; charset=utf-81.4 KB
/v1/projects/101.xmlapplication/xml; charset=utf-8800 B
/v1/projects/102.xmlapplication/xml; charset=utf-8626 B
/v1/tasks.xmlapplication/xml; charset=utf-81.4 KB
/v1/tasks/1001.xmlapplication/xml; charset=utf-8546 B
/v1/tasks/1002.xmlapplication/xml; charset=utf-8427 B
/v1/tasks/1003.xmlapplication/xml; charset=utf-8511 B
/v1/users.xmlapplication/xml; charset=utf-82.9 KB
/v1/users/1.xmlapplication/xml; charset=utf-81.0 KB
/v1/users/2.xmlapplication/xml; charset=utf-8942 B
/v1/users/3.xmlapplication/xml; charset=utf-8967 B

Validate the canonical shape with the dataset schema.

Related guides: Cross-format test data, For coding agents.