My NSXMLParser is not parsing and returning null

▼魔方 西西 提交于 2019-12-23 06:13:14

问题


I was parsing my xml in some other view controller's button click but now i have changed it to the app delegate class (My app is a Universal app). so that as soon as i start my app is should parse all.My parsing methods are written in another ViewController and i am calling those methods from my appDelegate class, but it is returning me this :-

NSXMLParser ERROR: The operation couldn’t be completed. (NSXMLParserErrorDomain error 65.) - (null)

dont know what i have done now. any help will be appreciable.


回答1:


Actually as it is a Domain error... it is not on your side. you must check your internet or Proxy settings. i hope you internet must be working on simulator but not in your app.... :)

Try it.




回答2:


Refer the error code NSXMLParserSpaceRequiredError = 65 in NSXMLParser Class Reference.



来源:https://stackoverflow.com/questions/8162477/my-nsxmlparser-is-not-parsing-and-returning-null

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!