GithubHelp home page GithubHelp logo

Comments (6)

mwaterfall avatar mwaterfall commented on July 29, 2024

Thanks for reporting this, I'll look into it.

from mwfeedparser.

fgarci avatar fgarci commented on July 29, 2024

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.

mwaterfall avatar mwaterfall commented on July 29, 2024

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.

fgarci avatar fgarci commented on July 29, 2024

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 Modifications

    if (data && !feedParser) {
    // Create feed info
    MWFeedInfo *i = [[MWFeedInfo alloc] init];

from mwfeedparser.

mwaterfall avatar mwaterfall commented on July 29, 2024

Yep, I've just seen your email and have replied ;)

from mwfeedparser.

mwaterfall avatar mwaterfall commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.