Retry NSXMLParser if error occurred



In my project NSXMLParser get xml-data from specific web-site. Usually it works fine. But sometimes it have to take several attempts to get data. In that case there's error in "parseErrorOccurred" (when xml-data not loaded).


How to retry xml-parsing for several times to be sure that data loaded successfully (for example 5 times)?


No comments:

Post a Comment