0

requestdump中的“<”和“>”变成了“>”和“<”,我想传递xml格式参数时如何避免这种情况?

请求转储:

<aaa i:type="d:string">
&lt;Detect&gt;&lt;Target Tar="bbb" Points="5"&gt;&lt;Point x="306"  
y="63"/&gt;&lt;Point x="399" y="63"/&gt;&lt;Point x="399" y="261"/&gt;&lt;Point x="306"  `y="261"/&gt;&lt;Point x="306" y="63"/&gt;&lt;/Target&gt;&lt;/Detect&gt;

y="261"/&gt;&lt;Point x="306" y="63"/&gt;&lt;/Target&gt;&lt;/Detect&gt;

服务器端需求的格式:

<aaa>
<Detect><Target Tar="bbb"><Point x="111" y="222"/><Point x="333" y="444" /><Point x="555" y="666"/></Target></Detect></aaa>

ps:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

xml

4

1 回答 1

0

尝试这个,

Html.fromHtml(respons).toString();
于 2012-04-19T08:28:48.203 回答