I am trying to make an app in objective-c that will parse an xml document like so using XMLReader (https://github.com/amarcadet/XMLReader):
<episodes>
<title>title title title</title>
<link>link link link</link>
<description>description description description</description>
<item>
<title>title title title</title>
<link>link link link</link>
<description>description description description</description>
</item>
<item>
...
</episodes>
I honestly have no idea how I'm supposed to do this. I have already imported the two files included in the zip, but when I try to call
NSData *data = http://link.to.xml/file // some data that can be received from remote service
NSError *error = nil;
NSDictionary *dict = [XMLReader dictionaryForXMLData:data
options:XMLReaderOptionsProcessNamespaces
error:&error];
it crashes giving me a SIGABRT on main thread. Can anyone help with this??? Also, how do I get the resulting NSArray or NSDictionary into a table view?