2016-10-17 52 views
0

如何在XML中为textTabs值编码特殊字符。例如Docusignapi Invalid_Request_Body XML如何对特殊字符进行编码

<text> 
<tabLabel>Specifications</tabLabel> 
<value>this isn’t the best type of board we need the "Strong Stuff"</value> 
</text> 

通常我会用下面的

<text> 
<tabLabel>Specifications</tabLabel> 
<value>this isn&apos;t the best type of board we need the &quot;Strong Stuff&quot;</value> 
</text> 

替换特殊字符但是,当我有这个值查看实际的文献中,没有翻译回来?

回答

0

您是否尝试过使用转义序列引号(\“),基本上是这样的:

<text> 
<tabLabel>Specifications</tabLabel> 
<value>this isn’t the best type of board we need the \"Strong Stuff\"</value> 
</text>