xml データを返す Web サービスを呼び出しています。xml データを受け取ると、すべて歪んでいます。"<"、">"、" '" などのすべてのエスケープ文字は、html 形式に変換されます。
すなわち ≶ > と ".
そのため、パーサーはタグを認識できません。
これはWebサービスからの私の応答です
<?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">
<?xml version="1.0" encoding="utf-8"?><customer><id>1</id><customername>Hitesh</customername><phonenumber>98989898</phonenumber></customer>
</return>
</ns1:GetCustomerInfoResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
return タグ間のコンテンツは xml データです。xml データを NSMutableString 変数にコピーし、文字の置換操作を実行しても、変更されませんでした。