Episode #426

Codable XML

21 minutes
Published on January 31, 2020

This video is only available to subscribers. Get access to this video and 506 others.

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.

This episode uses Xcode 11.3.1, Swift 5.1.