android ksoap2 - "<" and ">" become "&gt;" and "&lt;" 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"> &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; 

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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -