Sample XML file

A ready-made example XML file for testing XML parsers, SOAP payloads, and feed ingestion. Here is exactly what you get, then download it at whatever size you need.

What's inside

<?xml version="1.0" encoding="UTF-8"?>
<users>
  <user id="1">
    <firstName>James</firstName>
    <lastName>Smith</lastName>
    <email>james.smith@company.com</email>
    <phone>+1-415-555-0132</phone>
    <company>Acme Corp</company>
    <jobTitle>Software Engineer</jobTitle>
    <address>
      <street>1482 Oak Ave</street>
      <city>Austin</city>
      <country>United States</country>
    </address>
  </user>
</users>

The document is well-formed with a declaration and a single root element, so it passes a validating parser.

Download sample XML file (100 KB)

Need a different size? Generate a XML file at any size up to 20 MB, exact to the byte.

Want your own content in it? Create a XML file from your text.

Need hundreds of these, or want to generate them from your own scripts? Tell us what you need

Frequently asked questions

Is this a valid XML file?

Every document is well-formed and passes an XML parser.

Is the data real?

No. Every name, email address, phone number and company in the file is generated placeholder content. Nothing here relates to a real person, so it is safe to commit to a repository or share with a team.

Can I use it in a commercial project?

Yes. The files are free to use however you like, including in commercial and closed-source work. No attribution required.

Do I need to sign up?

No account, no email, no limit on downloads.