Note that there are some explanatory texts on larger screens.

plurals
  1. PO"The operation couldn’t be completed. (NSXMLParserErrorDomain error 111.)"
    text
    copied!<p>I am trying to parse an XML string in Xcode. It parse the string successfully, but after it gives error.</p> <p>Here is the xml String, parsing code and error message. please guide me. </p> <p>Thank you all in advance.</p> <p>XML String.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;soap:Body&gt;&lt;GetProductResponse xmlns="http://searchupc.com/"&gt;&lt;GetProductResult&gt;"productname","imageurl","producturl","price","currency","saleprice","storename" "Nature's Way Kids Smart Omega-3 Vita Balls X 50 Caps","http://ecx.images-amazon.com/images/I/31A5BCa%2BFvL._SL160_.jpg","","22.04","USD","","N/A" &lt;/GetProductResult&gt;&lt;/GetProductResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt; </code></pre> <p>the code returns for "GetProductResponse" and "soap:Body", then it gives error.</p> <pre><code>(void)parser:(NSXMLParser *)parser didEndElement:(NSString *) NSLog(@"didEndElement() Element: "); if(([elementName isEqualToString:@"GetProductResponse"]) || ([elementName isEqualToString:@"soap:Body"]) || ([elementName isEqualToString:@"soap:Envelope"])){ NSLog(@"EOF Reached: %@",elementName); // we reach the end of product data string. return; } </code></pre> <p>This is the error message:</p> <blockquote> <p>Error Domain=NSXMLParserErrorDomain Code=111 "The operation couldn’t be completed. (NSXMLParserErrorDomain error 111.)"</p> </blockquote>
 

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