warningubl-2.1

XML-003:XML encoding declaration recommended

XML should declare character encoding.

Fix this in your source system

MANUAL

XML encoding declaration should be specified to ensure correct character interpretation. Adding or changing encoding declarations could alter how special characters are processed. Configure your invoicing software to include the encoding declaration (typically UTF-8) in the XML output.

See the step-by-step instructions below to fix this error manually.

Why This Error Matters

Encoding ensures proper character handling.

How to Fix It

1

Add declaration

<?xml version="1.0" encoding="UTF-8"?>

2

Use UTF-8

Standard encoding for invoices

Technical Details

XPath: XML declaration

Common Causes

  • Missing declaration
  • Wrong encoding

Frequently Asked Questions

XML should declare character encoding.
Add XML declaration with UTF-8 encoding. Invoice Navigator can help identify and fix this issue.
XML-003 is a warning that should be addressed.

Related Errors

Last updated: 19 January 2026

Share this guide: