Parsing XML files with Python (xml.etree.ElementTree)

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

That's how it is supposed to be taught. I have been browsing the courses on how to do it and they all are complicated. Thankfully found this video. Thanks a lot. Great job!

bayrakmusti
Автор

Thanks a lot for the great tutorial. Your approach to XML parsing was spot-on for me and it was exactly what I was looking for to get started on XML parsing.

ImtiazEbnaMannan
Автор

Thank you, Francesco, for taking the time to review this library's different functions. You have greatly helped me finish a much-needed script for our localization engineering tasks. Notably, adding text to an existing tag saved the day.

jdvelasquezr
Автор

Thanks a lot for this video. I couldn't grasp the concepts properly even after reading from books. This video made it look like piece of cake.

UsmanSaadat
Автор

Ciao a Tutti. Ho provato da me stesso cosi come lo hai fatto tu. Dopo di che ho trovato il tuo video. Grazzie mille per averlo fatto.

konradp
Автор

Grazie Mille!!! That was exactly what I was looking for and all well explained!!!

ginopeduto
Автор

Excellent man!
This is what I was looking for :)

RodrigoMontes
Автор

C'e' qualche modo build in di non essere costretto di formattare questo xml?

konradp
Автор

Can you show us how to parse a Tableau dashboard file (*.twb)? It's an XML file, Tableau just renamed it. I am trying to create a data dictionary from the .twb file.

xst-k
Автор

Hi Francesco. Thanks for the great video! I ran into an error after editing my xml file. I tried to view the entire file to make sure my changes were made with ET.dump(tree) and I always get "AttributeError: 'str' object has no attribute 'items'" I'm testing with Jupyter notebook and when I restart the kernel, ET.dump works just fine before I make changes to the file. Any idea on how to fix this? I'm new to Python.

arnolda
Автор

Hi Francesco! I have been trying to do something with elementtree for several days but it is impossible for me ... And it gives me the feeling that it is very simple. I want to make a little script that adds a child element only if it doesn't already have it. Imagine that the document lacks year to panama. My script would go through the xml document and add only the year to Panama ... Could you give me some idea please?
Many thanks.

hoscoharding
Автор

Is there a way to change sub-element instead of the whole element string? let's say for example that I want to change W with SW but not the name, and I need to do it in a loop so I can't put the name string inside as it changes anytime, is there a way to call the specific sub element?

giacomocillari
Автор

Increase your font size before doing tutorials. its quite complicated to read texts. anyway goodjob

arshap
Автор

Hi Francesco,
i'm getting error while parsing xml file since it is having special words. kindly hep me to avoid this error.
Error : not well-formed (invalid token): line 277, column 366

CinemagicMindset
Автор

hii franseco great video thanks i need small suggestion here let's saya <KTOPL> 100</KTOPL> so in this i need output like KTOPL 100 here i need tag and value both how we can get can u please explian

vijayalakshmi
Автор

Can this be done by Beautifulsoup library?

KiviliG
Автор

Merge XML files using python, can you please make video on this top

shrinivasulunandyala
Автор

Thanks for this video, I needed to parse xml from a variable instead of a file and found this : xml_data_tree =

sidjjj
Автор

How to install xmltree in python 2.7.5
I am not able to upgrade due to restriction

fantasticprajwal
Автор

Go raibh céad maith agat, a Francesco. Rud a bhí de dhíth orm le fada. Pádraig Mac Con Uladh

padraigmaccu