Hello, in this video we are going to look at using the built in Dom parser to load and output XML. So we can do some basic stuff using the built in, you know, Dom parser. So you just do XML document equals you Dom document. And then we just do XML document. And we know the file. And because it's in the same directory on this plate example, it's not just before right here.
So obviously, feel free to change this to the exact name and file path where your file is. Next is going to say print XML document and the XML so this won't save anything. You see they just dumped the XML tree out Can I dump it out using HTML formatting as well? One Two. There we go. Let's see what we get.
There we go. We've got all the data so Yoda, Darth Vader. good old days. Do you remember when I was a joy Padawan literally just with the field on the code is got everything from it. This isn't that useless. So in the next video, I'm going to show you how to loop through the XML.
So stay tuned for that. Any questions, feel free to pop me a message and as usual, I look forward to seeing you in the next video.