When using the NSXMLParser (indirectly through Michael Waterfalls MWFeedParser library) and parsing the following RSS feed:
http://qdb.us/qdb.xml?action=latest
NSURL *feedURL = [NSURL URLWithString:@"http://qdb.us/qdb.xml?action=random"];
self.feedParser = [[MWFeedParser alloc] initWithFeedURL:feedURL];
self.feedParser.delegate = self;
self.feedParser.feedParseType = ParseTypeFull; // Parse feed info and all items
self.feedParser.connectionType = ConnectionTypeAsynchronously;
[self.feedParser parse];
I receive back an invalid formatted xml document that appears to be an illegal character in the feed.
I've tried changing the documents encoding from ISO-8859-1 to UTF-8 but the problem still occurs.
How do I identify the illegal character and then how do I make it so parsing the RSS feed won't fall over when encountering these illegal characters?
References: (links I've already investigated)