As we noted in Chapter 10, Serializing and Saving – JSON, YAML, Pickle, CSV, and XML, Python's xml package includes numerous modules that parse the XML files. Because of the wide adoption of the XML files, it often becomes necessary to convert between XML documents and Python objects. Unlike JSON or YAML, the mapping from XML is not simple.
One common way to represent the configuration data in XML is the PLIST file. For more information on the PLIST format, you can refer to https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html.
Macintosh users with XCode installed can perform man plist to see extensive documentation on the XML-based format. The advantage of the PLIST format is that it uses a few, very general tags. This makes it easy to create PLIST files and...