Skip to content

pwillsey/RSS-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

RSSParser
A simple RSS parser implemented in Objective-C

Sample Usage:

- (IBAction)parseRSS:(id)sender {
	RSSParser *parser = [[RSSParser alloc] init];
	[parser setDelegate:self];
	[parser downloadAndParseFeed:[NSURL URLWithString:@"http://www.macupdate.com/rss"]];
}

- (void)parserDidParseChannel:(NSDictionary *)channel {
	NSLog(@"Received Channel: %@", [channel objectForKey:@"title"]);
}

- (void)parserDidParseItem:(NSDictionary *)feedItem {
	NSLog(@"Received Story: %@", [feedItem objectForKey:@"title"]);
	NSLog(@"With Body: %@", [feedItem objectForKey:@"description"]);
}

- (void)parserDidFinishParsing:(RSSParser *)parser {
	[parser release];
}

- (void)parser:(RSSParser *)parser didEncounterError:(NSError *)error {
	NSLog(@"Error Occurred: %@", error);
	[parser release];
}

About

Simple Objective C RSS Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published