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
Repair technical generation at its source, but never use an XML edit to bypass the required accounting or tax correction.
the VAT Act · Peppol validation rules
Not legal advice.