Hello,

I am working with a localization tool Wordforge Editor. I am trying to keep the tags inside a text of a xliff file without changing the xml special characters. 
For example, here is a source string and a target string of a xliff file.

<source xml:lang="en-us"> Texts before inline tag<bpt id="1">texts inside inline tag</bpt> Texts after inline tag</source>
<target"> Texts before inline tag<bpt id="1">texts inside inline tag</bpt> Texts after inline tag</target>

The source and target string can be shown in the localization tool and user translates the English target to another language.
Here in the target,  the text "<bpt id="1">texts inside inline text</bpt>" has to be kept as it is. It can not be changed or distorted. But when I save the text in the xliff file, it can not keep the original tag. Rather it escapes the special character of xml tag "<" and ">" to "&lt;" and "&gt;" respectively.

As a result, the string is saved in the file as

<target>Texts before inline tag &lt;bpt id="1"&gt; texts inside inline tag &lt;/bpt&gt; Texts after inline tag <target>

It supposed to be saved in the file like this :

<target"> Texts before inline tag<bpt id="1">texts inside inline tag</bpt> Texts after inline tag</target>


Can you please tell me how can I prevent xml special characters("<" and ">") from being replaced with character entities ("&lt;" and "&gt;") while saving in the file.
Is there any function or technique in lxml library to handle this?


 
--
Thank you,
Aditi.