Definition: XML (Extensible Markup Language) is a standardized, text-based data format for the structured representation of information. In accounting, XML serves as a transport and exchange format for invoices, payment files, bank statements and tax data because it is machine-readable, validatable and platform-independent.

What is XML and how does it work?

XML describes data using nested elements and attributes that can be validated against a schema (XSD). This allows the exact structure of an invoice or a payment file to be specified. For accounting processes this means: data arrives in a standardized form and can be processed automatically without manual input.

Key characteristics of XML:

Practical applications in accounting

XML is used in several central workflows of financial administration and bookkeeping. For freelancers and small businesses it opens up efficiency gains and improved compliance.

E-invoicing and formats

In Germany formats such as XRechnung and ZUGFeRD/Factur-X play a major role. XRechnung is the XML format required for electronic invoices to public sector clients. ZUGFeRD combines PDF with embedded XML and is suitable for data exchange with business partners.

Payments and bank communication

ISO 20022 XML (e.g. pain.001) is used for SEPA payment files. Likewise, account statement formats such as camt.053 deliver structured XML data that enable automated account reconciliation and incoming payment checks.

Tax data and interfaces

ELSTER uses XML-based data transmissions for tax returns and filings. Many accounting programs and ERP systems also export or import booking data in XML format to implement, for example, DATEV exports or bank interfaces.

Using XML does not exempt you from statutory requirements. The following points are important in practice:

Tips for implementation in small businesses

To ensure XML processes run smoothly in accounting, pragmatic steps are recommended:

Sample overview of common XML formats:

Format Use Benefit
XRechnung Electronic invoices to public sector clients Official standard, required for deliveries to public authorities
ZUGFeRD / Factur-X Sending invoices to business partners Combination of human-readable PDF and machine-readable XML
ISO 20022 (SEPA) Transfers, direct debits, account statements Standardized bank communication, simplifies reconciliation

Conclusion: XML is an indispensable tool for modern accounting. It reduces manual work, improves data quality and supports compliance with legal requirements. Plan implementation in a structured way, validate formats and coordinate processes with your tax advisor to achieve maximum efficiency and legal certainty.

Promo

Create legally compliant e-invoices in just a few minutes with BillingEngine. Try now.

Glossary Questions
What is XML and what is it used for in accounting?

XML (Extensible Markup Language) is a structured data interchange format used in accounting to transfer invoice data, bank statements (e.g., camt.053), SEPA payment orders (pain.001), and for data exchange between accounting programs. It enables machine-readable, standardized data transmission and facilitates the automation of posting processes.

Do I, as a freelancer, have to retain XML files and do they comply with the GoBD?

Yes, XML files are also subject to the retention obligations and requirements of the GoBD; they must be retained, secured against alteration, and provided with traceable metadata. XML itself is not proof of compliance — authenticity, immutability and readability must be ensured both technically and organizationally.

Are XRechnung and ZUGFeRD the same as XML?

XRechnung and ZUGFeRD are e-invoicing standards that use XML for structured transmission; XRechnung is a pure XML format defined by national/European requirements, ZUGFeRD is a hybrid format (PDF/A-3 with an embedded XML file). Both are intended to exchange invoice data in a machine-readable way, but they differ in structure and intended usage scenarios.

How do I send an XML invoice to public contracting authorities?

Invoices to public contracting authorities generally must be submitted in the XRechnung format via the transmission channels required by the contracting authority, for example via PEPPOL, central invoice-receipt portals, or specified interfaces. Since the E-Invoicing Act, this format has been mandatory for many public contracting authorities.

Does my accounting software support XML import/export and what should I watch out for?

Most modern accounting programs support XML import/export or offer interfaces to DATEV, Bank-XML and e-invoicing standards; what matters is correct field mapping (mapping) and compliance with the required XML schemas. Before using it in production, you should run tests and check the software configuration for GoBD compliance.

History
Publication date:
11/14/2025
Modification date:
11/15/2025
Start now

Ready to simplify your accounting?

With just a few clicks, you can send your first legally compliant e-invoice.

Instant access
with 1 click
or Sign up For intensive
testing
Feedback

JavaScript should be activated for optimal use of BillingEngine.