XML Parser for ASIHTTPRequest

不问归期 提交于 2019-12-11 01:05:11

问题


What XML Parser Library can i use that is best for parsing XML Response string from ASIHTTPRequest response? That is also easy to setup and can be easily understand, really need an immediate result for a project

Thanks


回答1:


Follow this , how to parse XML in Objective c using ASIHTTPRequest and handle all this methods

-(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict

-(void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName

-(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string

See this link too




回答2:


NSXMLParser is a Sax parser and easy to use. Look out for apple documentation on the same.




回答3:


Read this article.. You can choose one :)

http://www.raywenderlich.com/553/how-to-chose-the-best-xml-parser-for-your-iphone-project



来源:https://stackoverflow.com/questions/6543993/xml-parser-for-asihttprequest

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