Data

Sample XML 50MB File

XML document with structured records

Click below for an instant download — no signup, no redirect.

Download 50MB XML50 MB

TestFile-xml-50mb.xml

File details

FormatXML
Extension.xml
MIME typeapplication/xml
Size50 MB
Exact bytes52,428,800
FilenameTestFile-xml-50mb.xml
Format versionXML 1.0 (W3C Recommendation)
Contents~200,000 Faker <record> elements inside <records> root; 2-space indented — designed for infrastructure limit testing
EncodingUTF-8; 2-space indented; XML 1.0; no namespaces

What is a 50MB XML file useful for?

A 50 MB XML file with ~200,000 records is an infrastructure limit-testing file. XML at this scale is common in enterprise EDI, government data portals, and legacy system migrations. Use it to verify that your upload endpoint enforces its size limit before any XML parsing, that rejection is fast, and that your iterparse-based streaming ingestion handles large XML correctly when it is within your supported range. DOM parsing of this file is not feasible in typical server memory budgets.

What's inside this file?

Generated by data.py with Faker. Approximately 200,000 <record> elements, 2-space indented. Full DOM parse would require 2–5 GB of RAM. iterparse with elem.clear() uses approximately 10–20 MB. Processing throughput with iterparse + lxml: approximately 5–15 MB/s → 4–12 seconds for the full file. This file is intended for streaming-path and rejection-path testing.

Download via curl

curl -L "http://localhost:8000/files/xml/TestFile-xml-50mb.xml" \
  -o TestFile-xml-50mb.xml

Need different parameters?

Generate a custom XML file with exact settings.

⚙ Generate custom XML

Related formats

Other XML sizes

Frequently asked questions