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.
sample-simple.xml
sample-100-records.xml
100 rows
sample-1000-records.xml
1,000 rows
sample-soap.xml
sample-rss.xml
sample-sitemap.xml
sample-config.xml
sample-svg.xml
sample-with-attributes.xml
sample-namespace.xml
sample-schema.xsd
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
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.