NSXMLParser error
I am fetching data from this url " http://potlocator.com/locationXML.php "
But when parsing data using NSXMLParser, I get this error,
found Error The operation could not be completed. (NSXMLParserErrorDomain error 68.)
What could be the problem?
thank
source to share
I don't know if you own the document or have any control over it, but this is not a blank document. I haven't tried parsing it with NSXMLParser, although I'm not sure if it ran into an error.
The file contains a tag "which is closed with" "(note the extra space after" id ")
This can cause the parser to stop working.
Also, but it could only be me, the file loads quite slowly. So, the parser might just think it is too slow and go away? I dont know.
Anyway, I would look at the extra space in the first
source to share
you can get full details of the version error at https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLParser_Class/Reference/Reference.html#//apple_ref/occ/cl/ NSXMLParser . I think this might help you.
PS: NSXMLParserNAMERequiredError = 68,
source to share