Skip to content
>_ TrueFileSize.com

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 browser

sample-simple.xml

153 B
File details and verification
Filename
sample-simple.xml
Exact size
153 bytes
Displayed size
153 B
Catalog status
Valid catalog fixture
SHA-256
c329bdea7bc82f57371d383f658c7dde4ecf4cac01c8be1662271ff075c9f4c2
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-simple.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-100-records.xml

11.4 KB

100 rows

File details and verification
Filename
sample-100-records.xml
Exact size
11,707 bytes
Displayed size
11.4 KB
Catalog status
Valid catalog fixture
SHA-256
ab3294ea6c8b2a70f0a49ba8ab52d8421106f32bfc3df93c55fa7c1b656fb30d
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
Rows
100
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-100-records.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-1000-records.xml

114 KB

1,000 rows

File details and verification
Filename
sample-1000-records.xml
Exact size
116,677 bytes
Displayed size
114 KB
Catalog status
Valid catalog fixture
SHA-256
7648acd3bc5e0585b9d41deea0f8b9703aabcfeee214928da3983d360209d638
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
Rows
1,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-1000-records.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-soap.xml

216 B
File details and verification
Filename
sample-soap.xml
Exact size
216 bytes
Displayed size
216 B
Catalog status
Valid catalog fixture
SHA-256
2dcd9041d4a32655edb7bf833e49affc2037560eb15def74ab58259955e0811f
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-soap.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-rss.xml

3.3 KB
File details and verification
Filename
sample-rss.xml
Exact size
3,332 bytes
Displayed size
3.3 KB
Catalog status
Valid catalog fixture
SHA-256
34dbaeebe3d3a1a79eb5ad21d52b7803845507f16e8f1ab536add1c392ad2dfa
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-rss.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-sitemap.xml

465 B
File details and verification
Filename
sample-sitemap.xml
Exact size
465 bytes
Displayed size
465 B
Catalog status
Valid catalog fixture
SHA-256
8f9af84254319fff718bf68be1b3210e3fdb2a63fc3defeb8f202bd4ea23aa57
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-sitemap.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-config.xml

222 B
File details and verification
Filename
sample-config.xml
Exact size
222 bytes
Displayed size
222 B
Catalog status
Valid catalog fixture
SHA-256
ac613a342ec8146c929993f47dba93debc3c5d656ce51ca6a34052e970d092a2
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-config.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-svg.xml

156 B
File details and verification
Filename
sample-svg.xml
Exact size
156 bytes
Displayed size
156 B
Catalog status
Valid catalog fixture
SHA-256
ce672d15d34395e4a9f3459eb67c67749cb6df4b61ae47aaf7119ccc63bd8958
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-svg.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-with-attributes.xml

4.4 KB
File details and verification
Filename
sample-with-attributes.xml
Exact size
4,498 bytes
Displayed size
4.4 KB
Catalog status
Valid catalog fixture
SHA-256
af22afb611d6cebafc2f76ed4446873939832b91b21c3f955ffdd4de018498a5
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-with-attributes.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-namespace.xml

260 B
File details and verification
Filename
sample-namespace.xml
Exact size
260 bytes
Displayed size
260 B
Catalog status
Valid catalog fixture
SHA-256
bd2dfc5cdd159c799bde50d709325d642f499c7569d4c70fb1b7dbe7a66205ae
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-namespace.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-schema.xsd

453 B
File details and verification
Filename
sample-schema.xsd
Exact size
453 bytes
Displayed size
453 B
Catalog status
Valid catalog fixture
SHA-256
ad6917c120ddee69cf687220057ba7fce298abc5ee7a6137865f1813111cd234
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-schema.xsd

See how TrueFileSize generates and measures sample files, or review the editorial policy.

sample-large.xml

1.12 MB
File details and verification
Filename
sample-large.xml
Exact size
1,177,324 bytes
Displayed size
1.12 MB
Catalog status
Valid catalog fixture
SHA-256
14cd0c4ca83881bafcb81f55233110617ee0e41e73276c0e9fdaa0100635e77c
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/xml
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/xml/sample-large.xml

See how TrueFileSize generates and measures sample files, or review the editorial policy.

Common XML formats

FormatUseFile
RSS / AtomBlog/podcast syndication feedssample-rss.xml
SOAPWeb service messaging protocolsample-soap.xml
SVGScalable vector graphicssample-svg.xml
SitemapSearch engine site mapsample-sitemap.xml
ConfigApp configuration (Maven, Spring)sample-config.xml
XSDXML Schema Definitionsample-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

EncodingUTF-8
VersionsXML 1.0 (most common)
ValidationXSD schema included
NamespacesNamespace variant included
Size range1 KB to 5 MB

Frequently Asked Questions

Is XML still relevant in 2025?
Yes. While JSON has replaced XML for REST APIs, XML remains dominant in enterprise systems (SOAP, WSDL), configuration files (Maven, Spring, Android), document formats (DOCX, XLSX, SVG), and data interchange standards (HL7 in healthcare, XBRL in finance).
What is XSD and how do I use it?
XSD (XML Schema Definition) defines the expected structure, data types, and constraints for an XML document. Use our sample-schema.xsd to validate XML files programmatically with libraries like lxml (Python), xmllint (CLI), or javax.xml.validation (Java).
What are XML namespaces used for?
Namespaces prevent element name conflicts when combining XML from different sources. For example, a <table> element could mean an HTML table or a furniture table — namespaces disambiguate. Our sample-namespace.xml demonstrates proper namespace usage.
How do I parse XML in JavaScript?
Browser: new DOMParser().parseFromString(xmlString, 'text/xml'). Node.js: use libraries like xml2js, fast-xml-parser, or cheerio. For streaming large XML, use sax-js.
What is the difference between SOAP and REST?
SOAP uses XML envelopes with strict schemas — common in enterprise and financial systems. REST uses JSON (usually) with flexible endpoints — standard for web APIs. Our sample-soap.xml lets you test SOAP message parsing.

Other data formats

Related reading