Dalton 0.0.3

Dalton 0.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by David Caunt.



Dalton 0.0.3

A simple RSS & Atom feed parser, built upon Ono.

Requires Xcode 6.

Usage

Parsing feeds is simple. You don't need to know ahead of time whether you're parsing an RSS or Atom feed, and Dalton abstracts away the differences.

NSError *error = nil;
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"sample" withExtension:@"xml"];
NSData *feedData = [NSData dataWithContentsOfURL:fileURL];
id<DLTFeed> feed = [DLTFeed feedWithData:feedData error:&error];

NSLog(@"Feed title is %@", feed.title);
NSLog(@"Feed was last updated at %@", feed.updated);
for (id<DLTFeedEntry> entry in feed.entries) {
    NSLog(@"Entry title is %@ link is %@", entry.title, entry.link);
}

Contact

@dcaunt

License

MIT. See LICENSE for more details.