"<" and ">" become ">" and "<" in requestdump ,How to avoid this situation when I want to transfer the xml format parameters
"<" and ">" become ">" and "<" in requestdump ,How to avoid this situation when I want to transfer the xml format parameters?
requestdump:
<aaa i:type="d:string">
<Detect><Target Tar="bbb" Points="5"><Point x="306"
y="63"/><Point x="399" y="63"/><Point x="399" y="261"/><Point x="306" `y="261"/><Point x="306" y="63"/></Target></Detect>
y="261"/><Point x="306" y="63"/></Target></Detect>
The format of the server-side requirements:
<aaa>
<Detect><Target Tar="bbb"><Point x="111" y="222"/><Point x="333" y="444" /><Point x="555" y="66开发者_StackOverflow中文版6"/></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
Try this,
Html.fromHtml(respons).toString();
精彩评论