xml 패키지를 해독하기 위해 NSXMLParser를 사용하고 있는데, 패키지 텍스트 내에 & apos를 받았습니다. 나는 XmlParser가 정의 다음 한nsxmlparser 해결할 수 없음 '
은 :
[xmlParser setShouldResolveExternalEntities: YES];
다음 방법을 파서 고려하지 않는 & APOS 전에 필드의 텍스트
- (void)parser:(NSXMLParser *)parser foundExternalEntityDeclarationWithName:(NSString *)entityName publicID:(NSString *)publicID systemID:(NSString *)systemID
를 호출되지 않습니다.
나는 이것을 해결하는 방법을 검색하는 Im, 어떤 생각 ???
덕분에 사전에 알렉스
XML 패키지 부분은 첨부 :
<?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/" xmlns:tns="urn:appwsdl"><SOAP-ENV:Body><ns1:getObjects2Response xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"><return xsi:type="tns:objectsResult"><totalRecipes xsi:type="xsd:string">1574</totalObjects><Objects xsi:type="tns:Item"><id xsi:type="xsd:string">4311</id><name xsi:type="xsd:string"> item title 1 </name><procedure xsi:type="xsd:string">item procedure 11......
나는 XML 부분을 atached했고, 파서는 & amp;와 함께 당신에게 많은 도움을 주었다. – alex
필자는 Mac을 사용하지 않으므로 테스트를 실행할 수 없지만'foundInternalEntityDeclarationWithName'을 시도해 보셨습니까? –
예, 모든 엔티티 관련 대리자를 시도했지만 아무도 호출되지 않았습니다. ( 감사합니다. 엡실론 :) – alex