Making XRechnung Readable: Viewer, Visualization, and What Belongs in the Archive

How the KoSIT visualization turns an XRechnung into a readable HTML or PDF view without replacing the original.

Hand-drawn sketch: A pair of glasses makes a document with lines of text readable

An XRechnung is an XML file that no human is meant to read directly, and that is exactly the core of the problem when a clerk or a customer still wants to look at the invoice. The solution is called visualization: an XSLT transformation that generates a human-readable HTML or PDF view from the XML structure, without changing anything about the legally authoritative XML original. This article shows how that works technically and what part of it can be automated. As of: August 2026.

Why can't an XRechnung simply be opened in a browser?

An XRechnung contains pure business data in a standardized structure according to EN16931 and the German CIUS extension, but no layout information whatsoever. If you open the file directly, you see nested XML tags instead of an invoice with a header, line items, and totals section. To turn the pure data back into something readable, an additional transformation is needed that defines which field appears where on the page.

How does the official KoSIT visualization work?

The KoSIT provides XSL transformers for this that work in two stages. According to the project's architecture description the XML invoice, whether in UBL or CII syntax, is first converted into a syntax-neutral intermediate form enriched with information about the business terms used from EN16931. In the second step, this intermediate form is used to generate an application-specific HTML representation, whose final appearance is controlled by CSS files that define the position and order of the individual invoice components. According to the project description, these building blocks are explicitly intended as optional components for integration into your own software, not as a ready-made application for download.

What part of this can meaningfully be built into an automation?

What can mainly be automated is the step from the incoming XML file to the HTML or PDF view: a workflow can run the intermediate transformation and the second stage one after another and attach the result directly to an email, a ticket, or a file store as soon as a new invoice arrives. This way, for example, accounting automatically gets a readable view alongside the original XML, without anyone having to manually open a viewer tool. What cannot be automated in the sense of "set up once and forget" is the CSS design itself, because layout decisions such as font size or field order are still made by humans once, when setting up the visualization.

What belongs in the archive, the XML or the HTML view?

The legally authoritative document remains exclusively the original XML file; the HTML or PDF visualization is only a reading aid. For GoBD-compliant retention, you therefore archive the XML file unchanged; an additionally generated visualization can be stored alongside it, but it does not replace the original. Anyone who instead uses the visualized version as the sole storage location risks losing the machine-readable data that is actually the purpose of the XRechnung for further processing and verification.

Frequently asked questions about XRechnung visualization

Do I need a separate visualization for every incoming XRechnung?

No, the transformation follows the same pattern for all XRechnungen, because it builds on the standardized structure according to EN16931. You set up the visualization once and then apply it to every incoming invoice afterward, regardless of the respective sender.

Does the visualization differ between UBL and CII invoices?

Both syntax forms pass through the same first transformation stage into the syntax-neutral intermediate form; after that, the further path to the HTML view is identical. For end users within the company, the underlying XML syntax of the incoming invoice is therefore no longer visible.

Does a PDF visualization visually replace the classic paper invoice completely?

Largely yes, because the header, line items, and totals section can be arranged via the CSS design so that a familiar invoice look results. However, the result matches a specific company's own invoice template exactly only if the CSS file is adjusted individually accordingly.

Can I use the visualization without doing my own development?

The building blocks provided by KoSIT are aimed at developers who integrate them into existing software or an n8n workflow. A ready-made click interface without technical integration is not included in the official components; here, individual e-invoicing portals and accounting programs offer their own, sometimes simplified, viewers.

About NordFlux

NordFlux UG (haftungsbeschränkt)

NordFlux builds digital employees for organisations: automations and AI agents that take over repetitive work. You stay in control.

More about us
Free initial analysis

Concrete questions about automation or AI?

In a free initial analysis we discuss your case directly. No strings attached.