From the course: Learning Python

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Manipulating XML

Manipulating XML - Python Tutorial

From the course: Learning Python

Manipulating XML

- [Instructor] XML is another very common data format. It's a tag-based language, just like HTML. And in this example we'll see how to use Python to load an XML file and then operate on the file while it's in memory. Now again, it's beyond the scope of this course to explain all of the basic details about XML and how it's used to represent data. There's a great course available here in the library called XML Essential training. I suggest checking out that course if you want to learn more. So I'm going to demonstrate how to work with XML using VS code. And of course, if you're using Colab, that's fine, just go ahead and make a new code cell. What you'll need to do is you'll notice I have a sample XML file here in the GitHub code space. So there's a couple of ways that you can use this file. One way to do this is to download the example files from GitHub and then upload this XML file into Colab so you can work on it. So if you go to the Colab tab and you click on the little folder over…

Contents