Comments (6)
Thanks for reporting this, I'll look into it.
from mwfeedparser.
Hi there
I'm having a similar issue when parsing the following feed :
http://www.infojobs.net/trabajos.rss/kw_controller/c_10/p_9/om_1_0/
This is the log I'm getting:
2010-09-22 16:56:40.249 MWFeedParser[7392:207] Finished Parsing With Error: Error Domain=MWFeedParser Code=3 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 31.)" UserInfo=0x5f3b1c0 {NSLocalizedDescription=The operation couldn’t be completed. (NSXMLParserErrorDomain error 31.)}
It's quite odd because it has been working for weeks.
Please advise.
Cheers
Fermin
from mwfeedparser.
Sorry for the delay in getting back to you guys.
@mikewolfxyou: It would appear that the Facebook feed is invalid and this is why the parser is failing. The NSXMLParser is very strict! I'll have a think about trying to get around this, but at least there's an explanation :)
@fgarci: I'm not sure why it's failing on that feed but I'm trying to figure it out. It is strange that it's been working before and it's now stopped working. Perhaps it's a problem that was introduced recently by a specific feed item? I'll keep looking into it and get back to you when I know more.
from mwfeedparser.
Hi Mike
I sent you the following to your gmail:
I just want to let you know that parsing fails when parsing XML documents with this instruction (i.e this feed http://www.infojobs.net/trabajos.rss/kw_controller/c_10/p_9/om_1_0/)
I found a similar issue in this thread:
http://stackoverflow.com/questions/525001/parsing-a-url-from-xml-with-amp-in-it
I changed your code (see below) accordingly and it works.Not sure it's the best solution though.
// Begin XML parsing
-
(void)startParsingData:(NSData *)data {
//Modifications
NSString* astr;
astr =[[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
astr =[astr stringByReplacingOccurrencesOfString:@"encoding="ISO-8859-15"" withString:@""];
NSLog(astr);
NSData* data2 =[astr dataUsingEncoding:NSUTF8StringEncoding];
//End Modificationsif (data && !feedParser) {
// Create feed info
MWFeedInfo *i = [[MWFeedInfo alloc] init];
from mwfeedparser.
Yep, I've just seen your email and have replied ;)
from mwfeedparser.
Hey guys,
I've just pushed an update which has much improved handling of various text encodings. Sorry it's taken such a long time, been a busy few months and I haven't been able to work on the parser as much as I would have liked!
Best regards,
Michael
from mwfeedparser.
Related Issues (20)
- Why Weird Licence
- Enclosures does not contain all media content HOT 3
- Retrieving <wfw:commentRss> and <slash:comments>
- Can`t call delegate functions
- iOS 9 SSL Issues HOT 3
- How To parse Image (media:content) HOT 1
- How display image for different RSSfedd's Key. like (media:content , image, thumbnail)
- Problem with & HOT 1
- Atom parsing: MWFeedItem 'link' is null HOT 1
- Search with keyword.
- Impliment search option.
- Problem (and solution) handling 32bit unicode entities
- Current code is not working HOT 5
- exc_bad_access when dismissing MWFeedParser delegate
- create app with wordpress
- Support for IOS10?
- Error Domain=MWFeedParser Code=2 "A server with the specified hostname could not be found." UserInfo={NSLocalizedDescription=A server with the specified hostname could not be found.}
- Error parsing img tag (and possibly dates)
- Crash On iOS 8 / Xcode 6 - Beta 6
- Using MWFeedParser for parsing only HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mwfeedparser.