android ksoap2 - "<" and ">" become ">" and "<" in requestdump ,How to avoid this situation when I want to transfer the xml format parameters -
"<" , ">" become ">" , "<" in requestdump ,how avoid situation when want transfer 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 server-side requirements:
<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
try this,
html.fromhtml(respons).tostring();
Comments
Post a Comment