Skip to content
>_ TrueFileSize.com

Large XML File — 5MB Stress Test

Download a free 5MB XML file. Stress test your XML parser's memory usage, benchmark DOM vs SAX/StAX parsing performance, and validate that your application handles large XML documents without hanging or crashing.

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.

Other XML files

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.

Frequently Asked Questions

Should I use DOM or SAX parsing for large XML?
For files over 1MB, prefer SAX (event-based) or StAX (pull-based) streaming parsers. DOM parsing loads the entire document into memory — a 5MB XML file can use 50–100MB of RAM as a DOM tree.
How do I handle XML files that are too large for memory?
Use streaming parsers: xml.sax in Python, SAXParser in Java, sax-js in Node.js. These process elements as they're read, using constant memory regardless of file size. Process and discard each element instead of building a full tree.
What performance should I expect parsing 5MB XML?
DOM parsing: 100–500ms. SAX/StAX streaming: 50–200ms. If your parser takes longer than 1 second, check for unnecessary string copying, excessive namespace resolution, or schema validation overhead.

Other data formats

Similar files in other formats

sample-simple.json

87 B

1 rows

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

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

sample-mysql.sql

55.6 KB

1,000 rows

File details and verification
Filename
sample-mysql.sql
Exact size
56,910 bytes
Displayed size
55.6 KB
Catalog status
Valid catalog fixture
SHA-256
3feac5727e2d7f9a7fbaf226f293db7fc0c0c2d7961974d4869d9316603edccd
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/sql
Rows
1,000
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/sql/sample-mysql.sql

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

sample-1kb.yaml

1 KB

30 lines

File details and verification
Filename
sample-1kb.yaml
Exact size
1,024 bytes
Displayed size
1 KB
Catalog status
Valid catalog fixture
SHA-256
2e383ce376f7cdea9bc326b12d679a226657fff5a9e1f99cda389caa956f5863
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
30
Note
simple-config
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/yaml/sample-1kb.yaml

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

sample-1kb.toml

1 KB

30 lines

File details and verification
Filename
sample-1kb.toml
Exact size
1,024 bytes
Displayed size
1 KB
Catalog status
Valid catalog fixture
SHA-256
5321484b28dd4dd11e150116a8e70e97e8d5d953bb38a6340a13766822d35faf
Header signature
Not applicable (no stable header signature for this format)
Verified on
2026-08-10
MIME type
application/octet-stream
Lines
30
Note
simple-config
License
CC0 / Public Domain
Download URL
https://cdn.truefilesize.com/toml/sample-1kb.toml

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