views:

722

answers:

2
+1  Q: 

NSXMLParser Error

Hi,

I am fetching data from this url "http://potlocator.com/locationXML.php",

But while parsing the data with NSXMLParser, i am getting this error,

found Error Operation could not be completed. (NSXMLParserErrorDomain error 68.)

What might be the problem ?

Thanks

A: 

Looks like there was an error in parsing. Check out the class reference page for NSXMLParser.

Epsilon Prime
A: 

I don't know whether you own the document or have any control over it, but it is not a clean document. I haven't tried parsing it with NSXMLParser though so I'm not sure it stumbles over the error.

The file contains a tag "" which is closed with "" (note the extra space after "id")

This might definitely cause the parser to abort operation.

Also, but that could just be me, the file loads pretty slow. So the parser might just think its too slow and quit? I dunno.

Anyway, I'd look into the extra space in first

nash