I have a xml file:
<xml ?iwes sf>
<product>
<name> Computer </name>
<details>a product of Dell</details>
<sender> sender no name</sender>
</product>
</xml>
i want split to:
<xml ?iwes sf>, ,<product>, ,<name>,Computer,</name>,..., ,</xml>
Then i translate text content (Computer,a product of Dell, sender no name) to Korean Language. Finally, i want join
<xml ?iwes sf>, ,<product>, ,<name>,Computer,</name>,..., ,</xml>
with result translated:
<xml ?iwes sf>
<product>
<name> 컴퓨터</name>
<details>Dell의 제품 </details>
<sender> 아니오 유명한 송신기 </sender>
</product>
</xml>
i used Regex:
string[] gettag = Regex.Split(inputText.Text, "(<.*?>)|(.+?(?=<|$))");
but it's wrong, it cann't do what i want, i cann't join xml tag to location before, cause it cann't get "\t"! What should i do?? My English level is'ot good. I hope everyone can understand what i said and help me! Thanks!