XML
XML test files generated in your browser
Generate XML fixtures locally for parser tests, schema validation, namespace handling, encoding checks, and API payload testing.
Verified . Generated XML output is produced locally in the browser; well-formedness, namespaces, and entity handling are checked on the generated fixture.
Identify XML files
- Magic signature
3C 3F 78 6D 6C (<?xml) or no magic bytes- Registered MIME
application/xml
XML has no binary container; structure comes from tags, attributes, and the prolog. Parsers must handle the encoding declaration, DTDs, and namespaces, so a valid prolog does not prove the document is well-formed.
Choosing XML
XML is plain text with strict well-formedness rules, readable by every parser, but namespaces, entities, encodings, and schema dialects still differ across tools. A file that parses in one library may fail in another.
Generate XML with an explicit encoding declaration and namespace set.
Test entity expansion limits before parsing untrusted input.
Validate against the schema separately from well-formedness.
Common test cases
- Parser and schema validation
- Namespace and entity edge cases
- API payload fixtures
Invalid and boundary cases
- Billion-laughs entity expansion
- Encoding declaration contradicting actual bytes
- Undefined namespace prefixes
XML fixture matrix
This format is generated locally in the browser and does not receive a permanent SEO URL.
Open the local generator