you need to learn how to parse an XML file.
I would suggest the following tutorial: https://lxml.de/parsing.html
In that tutorial, search for: "The lxml.etree Tutorial"
I would suggest the following tutorial: https://lxml.de/parsing.html
In that tutorial, search for: "The lxml.etree Tutorial"