XML parsing in swift 3

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


This code is inside a

let task = session.dataTask(with: request) { (data, response, error) in ... }

Any insight would be appreciated!


Surely someone is using XML on this forum? I could use the help! :slight_smile: