Download XML Sample Files

File File type File size Rows/Records Mime type Download example file
XML Sample - Simple XML 617 B 5 application/xml Download example file
XML Sample - Nested Structure XML 8 KB Nested application/xml Download example file
XML Sample - With Attributes XML 3 KB 10 application/xml Download example file
XML Sample - RSS Feed XML 4 KB 5 items application/rss+xml Download example file
XML Sample - Sitemap XML 2 KB 10 URLs application/xml Download example file
XML Sample - SVG XML 1 KB N/A image/svg+xml Download example file

About XML files

XML uses a tree structure of nested elements. Every element has an opening tag and a closing tag, and elements can have attributes. The format is strict about well-formedness: every tag must be closed, attribute values must be quoted, and there must be exactly one root element.

XML is more verbose than JSON, but it supports features like namespaces, schemas (XSD), and transformation (XSLT) that JSON does not have. For data validation, XML Schema lets you define exactly what structure is allowed.

Our XML samples include a basic structure, nested data, RSS feeds, and a valid sitemap. For a less verbose alternative, try our JSON files or YAML files.