Translate XML files with the file translation feature via the web translator, desktop apps, or API.
When translating XML files with DeepL, all texts in natural language that are stored in any element will be considered for the translation.
Example:
<p status="ready">Hello world!</p>This might also include comments and contents within the CDATA section.
Text that is part of an attribute value (e.g., <p status="ready">) or processing instructions will not be translated.
translate="no" attribute to the element you would like to exclude.DeepL API subscribers can translate XML files by using /document requests. Consult our API documentation to learn how to translate XML files with the DeepL API.
Troubleshooting
I got an error message while uploading my XML file.
If your file is not "well formed" or invalid according to the current XML standards (e.g., unclosed tags, invalid characters), this will result in an error.
Check your file for any formatting issues and try to upload it again.
Code or configuration data within my XML file was translated.
All texts that contain natural language except for attribute value or elements that have the translate="no" attribute will be translated during the file translation process. This might also include contents of elements that are intended as code or configuration data (e.g., <regex> or <template>).
Remove these elements before translating them with DeepL or add the translate="no" attribute.