Codable XML

Episode #426 | 21 minutes | published on January 31, 2020 | Uses Xcode-11.3.1, Swift-5.1
Subscribers Only
Last time we saw the manual approach to parsing XML. While ultra flexible, parsing XML that is extremely tedious. In this episode we will examine a different approach using Codable and a 3rd party library that adds support for XML. We'll see how XML's flexibility adds some increased complexity with how to parse documents, how to control whether properties are encoded/decoded as elements or attributes and how to deal with nested arrays.
blog comments powered by Disqus