Sample XML Files — Download Test Data (10 to 5,000 Records)
Extensible Markup Language · .xml · MIME type application/xml
Download a sample XML file — well-formed, UTF-8, with an XML declaration, attributes on elements, nested children and typed values, describing the same fictional orders as our JSON and CSV samples. Three sizes (10, 500 and 5,000 records) suit parser tests, XSLT work and performance checks.
XML remains the backbone of enterprise integration (SOAP, EDI, RSS, SVG, Office formats), so a 'modern' JSON-only API still meets it at the edges. Use these files to verify parsers handle attributes and text nodes correctly and to test XML → JSON conversion.
Download sample XML files
| File | Details | Size | Download |
|---|---|---|---|
sample-data-small.xml | 10 records | 3 KB | |
sample-data-medium.xml | 500 records | 151 KB | |
sample-data-large.xml | 5,000 records | 1.5 MB |
Need one of every data format? Download the data sample pack (202 KB, one small file of every data format (17 files)).
Use these files from the command line or CI
Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.
# Download one file curl -O https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/data/xml/sample-data-small.xml # Verify it (SHA-256 is listed for every file above) shasum -a 256 sample-data-small.xml # Machine-readable index of every sample file curl https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="xml")'
XML format at a glance
| Full name | Extensible Markup Language |
|---|---|
| Extensions | .xml |
| MIME type | application/xml |
| Standard | W3C XML 1.0 |
| Encoding | UTF-8 (declared) |
| Structure | <orders> → <order id date status> → customer, product, quantity, unitPrice, total |
| Schema | None attached (well-formed, not validated) |
What people test with sample XML files
- XML parser and XPath tests
- XML → JSON conversion (attributes vs elements)
- Enterprise integration fixtures
Frequently asked questions
Is there an XSD schema for these files?
Not yet. The structure is simple enough to write one in a few minutes, and it is on our list — if you need it for a validation test, tell us via the report link on this page.
Are these XML files safe to download?
Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.
Can I use the sample XML files commercially?
Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.
Can I hotlink these files or use them in CI?
Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).
Related sample files
Testing a file pipeline? We build them.
Uploads, conversions, previews, document processing and media workflows are the kind of production systems Pine & Birch designs and runs for clients — which is why we needed these files in the first place.
See how we can help