How to Parse XML with ElementTree
We'll cover the following...
We'll cover the following...
Now we get to learn how to do some basic parsing with ElementTree. First we’ll read through the code and then we’ll go through bit by bit so we can understand it. Note that this code is based around the original example, but it should work on the second one as well.
You may have already noticed this, but in this example and the last one, we’ve been importing cElementTree instead of the normal ElementTree. The main ...