Note that there are some explanatory texts on larger screens.

plurals
  1. PONSXMLParserErrorMessage internal error: Huge input lookup
    text
    copied!<p>I have an IOS app where I need to parse an xml file and I've been working with NSXMLParser. I have some xml data that about 8kbytes and Im getting this error, but Im parsing smaller files without an issue. I've tried searching and I couldn't find anyone else with this problem in IOS. Is this a limitation of NSXMLParser and I need to use a different library or is there some property that has to be set to allow for larger data?</p> <p>Any help would be appreciated.</p> <p>EDIT: Here is the file exactly as I'm retrieving from my web service: <a href="https://www.dropbox.com/s/3436w653reyybpb/File.xml" rel="nofollow">https://www.dropbox.com/s/3436w653reyybpb/File.xml</a></p> <p>Here is the code Im using:</p> <pre><code>// XML.m - (id)parseXml:(NSData *)data { NSXMLParser *xml = [[NSXMLParser alloc] initWithData:data]; xml.delegate = self; results = [[NSMutableArray alloc] init]; error = nil; [xml parse]; if (error) return error; return results; } -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI: (NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict { [results addObject:attributeDict]; } - (void) parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError { error = parseError; } </code></pre> <p>The code isn't even reaching the didStartElement delegate method, it's just going right to the parseErrorOccured. The data thats being passed is the file contents that I supplied.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload