tag_handling parameter to xml, the API will process XML input by extracting the text out of the structure, splitting it into individual sentences, translating them, and placing them back into the XML structure.
For the translation of HTML content please see HTML Handling
Sentences with Markup
If you want to translate text where individual parts are marked up, you can simply activate the XML engine by settingtag_handling to xml. The following examples show marked-up text and how it will be translated:
- Basic Example
- With Attributes
- Placeholder Tag
Request
Response
Ignored Tags
To ensure that elements in the original text are not altered in translation (e.g. trademarks or product names), use theignore_tags parameter and specify a tag for this function.
Example: ignore \<x\> tag
Parameters
Request
Response