How can an XML error be corrected without compromising the accounting record?
Short answer
First distinguish a technical export or mapping error from a change to the accounting content. Correct technical mapping in the ERP or transformation layer. Correct a commercial or accounting fact only through the approved accounting and tax procedure appropriate to that change.
Mapping and format
For example, an empty element, bad code number or wrong order can be a technical export error.
Suma is not cosmetics
If you change the price, VAT, customer or delivery date, it's not just an XML fix.
Keep track
Save the original file, the validation report, the change made and the person who approved the correction.
Please correct at the source
The best correction is in the ERP data or the exporter, so that the error is not repeated with the next invoice.
Conclusion: Do not edit the XML file as if it were an ordinary text file without a record. Secure editing means distinguishing between technical and accounting aspects whilst maintaining the audit trail.
Sources: Act No. 222/2004 Coll., invoicing context; EN 16931/Peppol validation; Slovak e-Invoicing Centre’s internal audit model. Verified on 5 July 2026.