问题
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