Nsxmlparser Error 76
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error in XML Error Domain=NSXMLParserErrorDomain Code=39? up vote 0 down vote favorite I have following xml
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://stackoverflow.com/questions/8443270/error-in-xml-error-domain-nsxmlparsererrordomain-code-39 Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XML Parsing - NSXMLParserErrorDomain error 5 up vote 0 down vote favorite I'm trying to parse a XML File. http://stackoverflow.com/questions/5486116/xml-parsing-nsxmlparsererrordomain-error-5 It worked very well - until today... Here's how I start to parse the XML: NSString *link = [[NSString alloc] init]; link = @"link_to_xml_file"; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:link] cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:30.0]; connection = [[NSURLConnection alloc] initWithRequest:request delegate:self]; And here's how I'm using the received data: - (void)connection:(NSURLConnection *)theConnection didReceiveData:(NSData *)incrementalData { if (data == nil) data = [[NSMutableData alloc] init]; [data appendData:incrementalData]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *filePath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.plist",actual]]; NSError *parseError = nil; NSDictionary *xmlDictionary = [XMLReader dictionaryForXMLString:[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] error:&parseError]; if (parseError != nil) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:[parseError localizedDescription] delegate:nil cancelButtonTitle:@"Zurück" otherButtonTitles:nil]; [alert show]; [alert release]; } //shows an alertview with NSXMLParserErrorDomain error 5 NSLog(@"String: %@",[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]); //returns null NSLog(@"Dictionary: %@",xmlDictionary); //returns null NSMutableDictionary *tempDictForAddDate = [[NSMutableDictionary alloc] initWithDictionary:xmlDictionary]; NSDateFormatter *originalDate = [[NSDateFormatter alloc]
versions. Now though, I'm getting a screed of errors that mean nothing to me, e.g: helptopics/lessons/Working_with_Layers.html -- Parse error: The operation couldn’t be completed. (NSXMLParserErrorDomain error 76.) Followed by about a http://www.cocoabuilder.com/archive/cocoa/320757-help-indexer-error-what-does-it-mean.html hundred similar. We haven't changed our help pages significantly since the last version, but haven't seen this before. Any ideas what it actually means? Why has this suddenly started happening (on Mountain Lion, this is our first build https://www.mail-archive.com/search?l=cocoa-dev@lists.apple.com&q=subject:%22Help+Indexer+error+-+what+does+it+MEAN%3F%22&o=newest&f=1 with ML)? --Graham Graham Cox Re: Help Indexer error - what does it MEAN? Aug 13 2012, 14:51 On 13/08/2012, at 10:43 PM, Graham Cox
much stricter than in the past, e. g. all img / p / meta / link tags have to be closed ... I just finished correcting all help files of one project, checked them via http://validator.w3.org, and HelpIndexer didn't report any problem ... Pretty well covered in this thread: http://lists.apple.com/archives/apple-help-authoring/2012/Oct/msg3.html I do hope everyone will feel free to file a bug asking for decent error messages in the log, though. It's fine for hiutil to crap out, but it should say *why* it's crapping out. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ A fool + a tool + an autorelease pool = cool! Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com Re: Help Indexer error - what does it MEAN? 2012-11-07 Thread Matthias Arndt Hi Graham, I had the same issue today: As Andy mentioned the HTML validation is much stricter than in the past, e. g. all img / p / meta / link tags have to be closed ... I just finished correcting all help files of one project, checked them via http://validator.w3.org, and HelpIndexer didn't report any problem ... Matthias ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch..