Sample XML 1MB File
XML document with structured records
Click below for an instant download — no signup, no redirect.
Download 1MB XML1 MBTestFile-xml-1mb.xml
File details
| Format | XML |
| Extension | .xml |
| MIME type | application/xml |
| Size | 1 MB |
| Exact bytes | 1,048,576 |
| Filename | TestFile-xml-1mb.xml |
| Format version | XML 1.0 (W3C Recommendation) |
| Contents | ~4,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; XML declaration |
What is a 1MB XML file useful for?
A 1 MB XML file with ~4,000 records is a realistic size for an enterprise data exchange file — ERP system exports, SOAP API responses, and EDI transaction sets routinely fall in this range. Use it to test that your XML ingestion pipeline correctly handles a document with thousands of sibling elements, that XPath queries execute efficiently, and that XSLT transformation completes within an acceptable time.
What's inside this file?
Generated by data.py with Faker. Approximately 4,000 <record> elements, 8 child elements each, 2-space indented. The DOM tree for a 1 MB XML file in lxml uses approximately 50–100 MB of RAM (XML element overhead is significantly larger than the source text). iterparse keeps memory usage proportional to one record at a time.
Download via curl
curl -L "http://localhost:8000/files/xml/TestFile-xml-1mb.xml" \ -o TestFile-xml-1mb.xml
Need different parameters?
Generate a custom XML file with exact settings.