Sample XML Files — Free Download for Testing
Download free sample XML files — from basic structures to SOAP envelopes, RSS feeds, sitemaps, and XSD schemas. Sizes from 1KB to 5MB for testing parsers, validators, and integrations.
Generate custom XML fileCreate up to 1GB locally in your browsersample-simple.xml
Verified file details
- Filename
- sample-simple.xml
- Exact size
- 153 bytes
- Displayed size
- 153 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-simple.xml
sample-100-records.xml
100 rows
Verified file details
- Filename
- sample-100-records.xml
- Exact size
- 11,589 bytes
- Displayed size
- 11.3 KB
- MIME type
- application/xml
- Rows
- 100
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-100-records.xml
sample-1000-records.xml
1,000 rows
Verified file details
- Filename
- sample-1000-records.xml
- Exact size
- 116,889 bytes
- Displayed size
- 114 KB
- MIME type
- application/xml
- Rows
- 1,000
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-1000-records.xml
sample-soap.xml
Verified file details
- Filename
- sample-soap.xml
- Exact size
- 216 bytes
- Displayed size
- 216 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-soap.xml
sample-rss.xml
Verified file details
- Filename
- sample-rss.xml
- Exact size
- 3,139 bytes
- Displayed size
- 3.1 KB
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-rss.xml
sample-sitemap.xml
Verified file details
- Filename
- sample-sitemap.xml
- Exact size
- 465 bytes
- Displayed size
- 465 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-sitemap.xml
sample-config.xml
Verified file details
- Filename
- sample-config.xml
- Exact size
- 222 bytes
- Displayed size
- 222 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-config.xml
sample-svg.xml
Verified file details
- Filename
- sample-svg.xml
- Exact size
- 156 bytes
- Displayed size
- 156 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-svg.xml
sample-with-attributes.xml
Verified file details
- Filename
- sample-with-attributes.xml
- Exact size
- 4,483 bytes
- Displayed size
- 4.4 KB
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-with-attributes.xml
sample-namespace.xml
Verified file details
- Filename
- sample-namespace.xml
- Exact size
- 260 bytes
- Displayed size
- 260 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-namespace.xml
sample-schema.xsd
Verified file details
- Filename
- sample-schema.xsd
- Exact size
- 453 bytes
- Displayed size
- 453 B
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-schema.xsd
sample-large.xml
Verified file details
- Filename
- sample-large.xml
- Exact size
- 1,176,271 bytes
- Displayed size
- 1.12 MB
- MIME type
- application/xml
- License
- CC0 / Public Domain
- Download URL
- https://truefilesize.com/files/xml/sample-large.xml
Common XML formats
| Format | Use | File |
|---|---|---|
| RSS / Atom | Blog/podcast syndication feeds | sample-rss.xml |
| SOAP | Web service messaging protocol | sample-soap.xml |
| SVG | Scalable vector graphics | sample-svg.xml |
| Sitemap | Search engine site map | sample-sitemap.xml |
| Config | App configuration (Maven, Spring) | sample-config.xml |
| XSD | XML Schema Definition | sample-schema.xsd |
Sample XML preview
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
</book>
</catalog>XML vs JSON in 2025
JSON preferred for
- →REST APIs (standard since ~2010)
- →Frontend/JavaScript applications
- →Configuration files (package.json, tsconfig)
- →NoSQL databases (MongoDB, Firebase)
XML still dominant in
- →Enterprise systems (SOAP, WSDL)
- →Configuration files (Maven, Spring, Android)
- →Microsoft Office formats (DOCX, XLSX)
- →RSS/Atom feeds, sitemaps, SVG
Use cases for sample XML files
- Testing XML parsers (DOM, SAX, StAX)
- Validating XML against XSD schemas
- Testing SOAP API integrations
- Verifying RSS/Atom feed readers
- Testing sitemap generation and parsing
- Verifying namespace handling in XML processors
Technical specifications
| Encoding | UTF-8 |
| Versions | XML 1.0 (most common) |
| Validation | XSD schema included |
| Namespaces | Namespace variant included |
| Size range | 1 KB to 5 MB |
Frequently Asked Questions
Is XML still relevant in 2025?
What is XSD and how do I use it?
What are XML namespaces used for?
How do I parse XML in JavaScript?
What is the difference between SOAP and REST?
Other data formats
Related reading
Mocking REST APIs with JSON Fixtures
Fast frontend iteration without a backend. MSW, json-server, and sample fixtures for users, products, and nested objects. Copy-paste examples.
Database Seeding from SQL Dumps
Populate test databases with realistic data. MySQL, PostgreSQL, and SQLite sample dumps. Fixtures for users, orders, and time-series data.
Sample JSON Data for API Testing and Mocking
Free sample JSON files for testing REST APIs. Users, products, nested objects, GeoJSON, and API response wrappers with code examples.