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.xmlPython
from urllib.request import urlopen
with urlopen("https://payloads.mochavi.com/v1/projects.xml") as response:
payload = response.read()Published files
11 stable URLs
| Path | Media type | Size |
|---|---|---|
/v1/projects.xml | application/xml; charset=utf-8 | 1.4 KB |
/v1/projects/101.xml | application/xml; charset=utf-8 | 800 B |
/v1/projects/102.xml | application/xml; charset=utf-8 | 626 B |
/v1/tasks.xml | application/xml; charset=utf-8 | 1.4 KB |
/v1/tasks/1001.xml | application/xml; charset=utf-8 | 546 B |
/v1/tasks/1002.xml | application/xml; charset=utf-8 | 427 B |
/v1/tasks/1003.xml | application/xml; charset=utf-8 | 511 B |
/v1/users.xml | application/xml; charset=utf-8 | 2.9 KB |
/v1/users/1.xml | application/xml; charset=utf-8 | 1.0 KB |
/v1/users/2.xml | application/xml; charset=utf-8 | 942 B |
/v1/users/3.xml | application/xml; charset=utf-8 | 967 B |
Validate the canonical shape with the dataset schema.
Related guides: Cross-format test data, For coding agents.