I am having a real hard time understanding something. In the project I’ve been given, some XML coming from a soap web service is parsed. This works just fine in iOS 4. When I tried to run the code in iOS 5 simulators or a device with iOS 5, the XML is not parsed correctly. It gives NSXMLParser domain error code 4.
When I looked at the XML, even in the working OS, the data coming from the webservice has < and > instead of all the XML tags. But that seems to still work in iOS 4. In iOS 5, i get the error mentioned above and a Bad Request message. I also couldnt manage to get the returning XML as it is, so far I was only able to see in NSData.
I’d like to know if this may be caused by any change in iOS versions, or anything else. I hope I made myself clear. Maybe even with this info, there’ll be some answers.
Thanks in advance,
Eren
The
NSXMLParserErrordomain error 4 isNSXMLParserEmptyDocumentError. It sounds like the problem lies with the retrieval of the original XML document from the web service and some change between iOS 4 and iOS 5. This should get you started on the right track. Post some code when you can and we can give more information.