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
153 B
sample-100-records.xml
11.5 KB
100 rows
sample-1000-records.xml
114 KB
1,000 rows
sample-soap.xml
216 B
sample-rss.xml
3.1 KB
sample-sitemap.xml
457 B
sample-config.xml
222 B
sample-svg.xml
156 B
sample-with-attributes.xml
4.4 KB
sample-namespace.xml
260 B
sample-schema.xsd
453 B
sample-large.xml
1.12 MB
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 |