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.

Basic files and encodings

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

Structure and syntax

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

By file size

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

SOAP and WSDL

Sample file: SOAP request: Envelope with Header and Body
SOAP request: Envelope with Header and Body
475 bytes
Sample file: SOAP response from the service
SOAP response from the service
496 bytes
Sample file: SOAP Fault: service error with a detail block
SOAP Fault: service error with a detail block
599 bytes
Sample file: WSDL 1.1: SOAP service definition
WSDL 1.1: SOAP service definition
2526 bytes

Malformed files (for error-handling tests)

Sample file: Broken XML: unclosed tag
Broken XML: unclosed tag
146 bytes
Sample file: Broken XML: overlapping tags
Broken XML: overlapping tags
169 bytes
Sample file: Broken XML: unescaped & and < characters
Broken XML: unescaped & and < characters
168 bytes
Sample file: Well-formed XML that fails XSD validation
Well-formed XML that fails XSD validation
372 bytes

🧠 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