I'm working with some XML parsing...
I'm thinking of which errors I should be careful about:
- no Internet connection
- no data in the XML stream
What else?
How can I check for Internet connection errors? The only "link" to Internet is when the parser start the parse method
let url = NSURL(string: testUrl)
var parser = NSXMLParser(contentsOfURL: url)
parser.delegate = self
parser.shouldProcessNamespaces = true
parser.shouldResolveExternalEntities = true
parser.parse()
So how should I check?