我正在开发一个应用程序,其中要求是使用行内的标记替换特定单词。
例如,请考虑以下行
became an accomplished singer, musician, and hymn writer 1
1替换为一些文本,最终输出应如下面xml
中所示 <ln coord="25.78:338.56:318.35:346.89" page="1" height="574.98" left="25.78"
top="338.56" font="CrimsonText-Roman" fontsize="12.5" fonttype="Embeded">
became an accomplished singer, musician, and hymn writer in
<footnote id='1'>1 </footnote> </ln>
我尝试过以下代码
Line.InnerXml.Replace("<", "<").Replace(">", ">");
但仍然在xml中获得以下输出
<ln coord="25.78:338.56:318.35:346.89" page="1" height="574.98" left="25.78"
top="338.56" font="CrimsonText-Roman" fontsize="12.5" fonttype="Embeded">
became an accomplished singer, musician, and hymn writer in
<footnote id='1'>1 </footnote> </ln>
如何在xml中获取所需的输出。