Sample XML·XML · ~7 KB

XRechnung UBL — Invalid Test Document

Intentionally invalid XRechnung XML with 8 documented validation errors — ideal for testing validators, error-handling routines, and QA processes.

Download

Format: XML · Size: ~7 KB · Updated: 2025-05-21

About this resource

This test document contains eight intentional errors commonly encountered in practice: missing Leitweg-ID (BR-DE-15), missing VAT ID (BR-DE-1), invalid date format (not ISO 8601), arithmetically inconsistent totals, invalid tax category code, duplicate line item numbers, missing IBAN for bank transfer payment type, and a discrepancy between line totals and BT-106.

Every error is extensively documented in the XML comments: the comment explains what is wrong, which business rule is violated, and what the correct value would be. The document thus serves not only as a test input but also as a learning tool for understanding common XRechnung validation errors.

This document MUST NOT be used as a real invoice. It is intended exclusively for testing and educational purposes.

How to use this template

Download the XML file and upload it to an XRechnung validator (KoSIT Validator or docutools.pro). Check whether your validator detects and correctly reports all eight errors. Use the errors as test cases for your own error-handling logic.

This resource is provided for informational purposes only. It does not constitute legal, tax, or professional advice. Always consult a qualified tax advisor or lawyer for your specific situation.