Sample XML Files

XML is a universal markup format. Used in configurations, document workflows, and structured descriptions — DOCX/XLSX, SVG, Android manifests, Maven pom.xml, sitemap.xml. Below are sample files with various encodings, namespaces, XSD, and edge cases.

Sample file: Simple XML file (3 elements with attributes and text)
Simple XML file (3 elements with attributes and text)
597 bytes
Sample file: XML with Unicode: CJK, emoji, Arabic, Cyrillic
XML with Unicode: CJK, emoji, Arabic, Cyrillic
1 Kb
Sample file: XML in UTF-16 encoding
XML in UTF-16 encoding
668 bytes
Sample file: XML in ISO-8859-1 (Latin-1) encoding
XML in ISO-8859-1 (Latin-1) encoding
472 bytes
Sample file: XML with UTF-8 BOM
XML with UTF-8 BOM
230 bytes
Sample file: XML with multiple namespaces (xmlns)
XML with multiple namespaces (xmlns)
825 bytes
Sample file: XML referencing an XSD schema (xsi:schemaLocation)
XML referencing an XSD schema (xsi:schemaLocation)
675 bytes
Sample file: XSD schema for sample-with-schema.xml
XSD schema for sample-with-schema.xml
1 Kb
Sample file: XML with 200 levels of nesting
XML with 200 levels of nesting
4 Kb
Sample file: XML with CDATA sections (HTML, code, escaping)
XML with CDATA sections (HTML, code, escaping)
896 bytes
Sample file: XML with custom entities (DOCTYPE, no external)
XML with custom entities (DOCTYPE, no external)
822 bytes
Sample file: XML with mixed content (text and tags interleaved)
XML with mixed content (text and tags interleaved)
901 bytes
Sample file: XML with empty and self-closing elements
XML with empty and self-closing elements
511 bytes
Sample file: Large XML file, 5 MB
Large XML file, 5 MB
5 Mb
Sample file: Large XML file, 10 MB
Large XML file, 10 MB
10 Mb
Sample file: Large XML file, 15 MB
Large XML file, 15 MB
15 Mb
Sample file: Large XML file, 20 MB
Large XML file, 20 MB
20 Mb
Sample file: Large XML file, 30 MB
Large XML file, 30 MB
30 Mb

🧠 How XML works

XML is a tree structure of tags and attributes. Supports UTF-8/UTF-16/ISO-8859-1 encodings, namespaces, XSD validation, CDATA, entities.

<?xml?> Declaration version, encoding UTF-8 / UTF-16 <tag> Elements tags + attributes nesting xmlns: Namespaces namespaces of names .xsd XSD schema validation of structure and types 💾 .xml ready file