¡@

Home 

2014/10/15 ¤U¤È 10:05:50

iphone Programming Glossary: currrenttitle

How to parse a locally stored XML file in iPhone?

http://stackoverflow.com/questions/3412058/how-to-parse-a-locally-stored-xml-file-in-iphone

my sample code is @interface NSXMLParser rssparser NSMutableArray stories NSMutableDictionary item NSMutableString currrentTitle NSString currentElement @implementation void viewDidAppear BOOL animated self parseXMLFileAtURL void parseXMLFileAtURL.. currentElement elementName copy if elementName isEqualToString @ rss item NSMutableDictionary alloc init currrentTitle NSMutableString alloc init void parser NSXMLParser parser foundCharacters NSString string if currentElement isEqualToString.. init void parser NSXMLParser parser foundCharacters NSString string if currentElement isEqualToString @ eletitle currrentTitle appendString string void parser NSXMLParser parser didEndElement NSString elementName namespaceURI NSString namespaceURI..