Blog Archives

Parsing XML in Swift 3

Parsing XML has always bothered me in Swift. The NSXMLParser class doesn’t actually parse the XML structure into Swift objects, rather it traverses the XML structure, pinging its delegate whenever it discovers something new, like an XML element or attribute,

Tagged with:
Posted in Swift

XML read error in AIR

Back to blogging, working on a couple of projects: I was importing an XML file using the standard technique of using a URLLoader, and in the result handler, setting the XML file with: var result:XML = new XML(event.target.data); But I

Tagged with: ,
Posted in AIR, Flash