I would like to parse an xml online & get it printed element by element of a single tag in iphone.I don't want it to be tabulated into UITableView,how can I do that.Please help me with an example on this which will be very much helpful.Thanks.推荐答案 1 .您可以为此目的使用NSXMLParser,通读 https://developer.apple.com/library/ios/documentation/cocoa/reference/NSXMLParserDelegate_Protocol/Reference/Reference.html 1. You can use NSXMLParser for this purpose, read through the delegate methods in https://developer.apple.com/library/ios/documentation/cocoa/reference/NSXMLParserDelegate_Protocol/Reference/Reference.html 2..您可能感兴趣的委托方法是:2. The delegate methods you would be interested in are : - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string 3 .这个问题被问了很多遍了,请使用搜索功能.3. This has been asked so many times, please use the search function. 这篇关于如何解析和打印从目标C的xml中逐个元素获取一个元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-03 15:10