Search⌘ K
AI Features

Parsing the Book Example

Explore how to parse XML files in Python with the lxml library by extracting data and storing it in lists and dictionaries. This lesson helps you move beyond basic printing to effectively structure XML data for further processing.

We'll cover the following...

Well, the result of that example was kind of boring. Most of the time, you want to save the data you extract and do something with it, not just print it out to stdout. So for our next example, we’ll create a data structure to contain the results. Our data ...