2010-06-10 3 views
0

xml 데이터를 반환하는 webservice를 호출하고 있습니다. 이제 xml 데이터를받을 때 모든 왜곡됩니다. "<가", ">"와 " '" xmlParsing 동안의 문제

quot

즉 ≶ &tg; 및 & 이제 HTML 형식으로 변환 같은 모든 이스케이프 문자는, 파서는 태그를 인식 할 수 없습니다. Plz 내가 도와 줄게, 내가 뭘하는거야?

이 웹 서비스

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> 
<SOAP-ENV:Body> 
<ns1:GetCustomerInfoResponse xmlns:ns1="http://qa2.alliancetek.com/phpwebservice"> 
<return xsi:type="xsd:string"> 
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;customer&gt;&lt;id&gt;1&lt;/id&gt;&lt;customername&gt;Hitesh&lt;/customername&gt;&lt;phonenumber&gt;98989898&lt;/phonenumber&gt;&lt;/customer&gt; 
</return> 
</ns1:GetCustomerInfoResponse> 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

반환 태그 사이의 내용이 XML 데이터입니다에서 내 반응이다. NSMutableString 변수에 xml 데이터를 복사하고 대체 문자 opereation을 수행했을 때도 변경되지 않았습니다. 아무도 날 도와 줄 수있어. 내가 생각

+0

nsdata 변수를 문자열로 복사하고 문자열의 이스케이프 문자를 바꾸고 문자열을 nsdata에 다시 할당하여 xml 데이터를 재구성 할 수있었습니다. 하지만 문제는 XML 파서가 태그를 파싱하기 시작할 때 태그가 바뀐 위치에서 멈추게됩니다. 그래서 와트 지금은 어떻게합니까 – Jayshree

+0

그것은 nsdata 제대로 작동하지 않는 것 같습니다. 누구든지이 문제를 도와 줄 수 있어요. – Jayshree

답변

0

공백으로 ≶ &tg; 및 "의 발행 수를 교체하십시오 도움이 될 것입니다.

관련 문제