Sample XML 5MB File
XML document with structured records
Click below for an instant download — no signup, no redirect.
Download 5MB XML5 MBTestFile-xml-5mb.xml
File details
| Format | XML |
| Extension | .xml |
| MIME type | application/xml |
| Size | 5 MB |
| Exact bytes | 5,242,880 |
| Filename | TestFile-xml-5mb.xml |
| Format version | XML 1.0 (W3C Recommendation) |
| Contents | ~20,000 Faker <record> elements inside <records> root; 8 child elements per record; 2-space indented |
| Encoding | UTF-8; 2-space indented; XML 1.0; no namespaces |
What is a 5MB XML file useful for?
A 5 MB XML file with ~20,000 records is a common size for enterprise batch file exchanges, SOAP bulk responses, and data migration packages. Use it to verify that your XML ingestion pipeline uses SAX/iterparse streaming rather than DOM parsing (DOM would use 250–500 MB RAM), to benchmark lxml iterparse throughput, and to test XSLT transformations that convert this structure to HTML or a different XML schema.
What's inside this file?
Generated by data.py with Faker. Approximately 20,000 <record> elements, 8 child elements each, 2-space indented. DOM parsing with lxml would use approximately 250–500 MB of RAM. SAX/iterparse processes this at a fixed ~5–10 MB of RAM with a throughput of approximately 5–15 MB/s on a modern server core.
Download via curl
curl -L "http://localhost:8000/files/xml/TestFile-xml-5mb.xml" \ -o TestFile-xml-5mb.xml
Need different parameters?
Generate a custom XML file with exact settings.