tibo/BlockRSSParser

Missing <content:encoded>

fabiomassimo opened this issue · 4 comments

Hi,
don't know why but I can't get the content:encoded field for this link

http://www.napolike.it/viabilita/feed

What's going wrong?

tibo commented

the content:encoded value should be parsed.
try to put a breakpoint at line 91 and 93 of the RSSParser.m file and print the value of elementName

Doesn't catch up content:encoded element.
Anyway, I've replaced AFHTTPRequestOperation with a NSURLConnection and everything goes fine.
Maybe could be a valid solution to merge:

NSURLRequest *request = [NSURLRequest requestWithURL:urlRequest.URL];

[NSURLConnection sendAsynchronousRequest:request
queue:[NSOperationQueue mainQueue]
completionHandler:^(NSURLResponse *response,
NSData *data,
NSError *connectionError) {
if (connectionError) {
failblock(connectionError);
}
NSXMLParser *xmlData = [[NSXMLParser alloc] initWithData:data];
[xmlData setDelegate:self];
[xmlData parse];
}];

tibo commented

glad you found your solution.
I'm thinking about removing dependencies to the AFNetworking framework but I don't have much time right now to work on it.
thanks for sharing!

With new NSURLConnection with block support it should be painless.
Anyway, something like that should do the trick and remove AFNetworking.
Thanks.