This has nothing to do with XML parsing, this is about correct URL.
[NSURL URLWithString:[entry.articleUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
This is very, very wrong.
You should never escape the whole URL. You should escape only the query parameters. The %0A
in the beginning and in the end is caused by encoding a line break.
In this case, they should be already escaped, so just trim the white spaces:
NSString* urlString = [entry articleUrl];
NSString* trimmedUrlString = [urlString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSURL *url = [NSURL URLWithString:trimmedUrlString];