Has anyone converted XML parsing code to Swift 3? I had working code and I’m struggling with upgrading it to Swift 3. For instance:
self.xmlParser = XMLParser(data: xmlData)
Reports an error (which appears on all lines where xmlParser is used:
Instance member 'xmlParse' cannot be used on type 'XMLParsing'
Same error on
self.xmlParser.delegate = self
Etc.
This code is inside a
let task = session.dataTask(with: request) { (data, response, error) in ... }
Any insight would be appreciated!
Thanks,
Denis