Full XML Processing Guide in Python

preview_player
Показать описание
Today we learn two ways to process XML files in Python. First we talk about SAX and then about DOM.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

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

The is one of the best solution of how to modify XML. I couldn't find any info online. You save me tons of time. Thank you so much.

deewademai
Автор

If I’m not wrong, there’s a couple more module that can parse xml. One of it is xml.ElementTree which is quite easy to use. Another one is BeautifulSoup4 with lxml parser, which is easier but slower.

ruidian
Автор

Please make a series on Assembly language.
I absolutely love your channel. Keep making good content. ♥️

arin
Автор

It was helpful as an introduction.
Thank you.

damian.io.flores
Автор

Hey buddy, I love your channel I've learned from so much from your channel. Do you think you can do a tutorial on regex next?

anonlegion
Автор

Dear NeuraNine: Your tutorials need to increase the font size to minimum of 24 or 30pts. Many of us are over 30 years of age and have poor eyesight and cheap laptops. Thanks.

basalduat
Автор

SAX tripped my bosses algorithm.

Got a error response out of him, "What the hell are you watching??".

Dr.Cosmar
Автор

I suspect the reason you're getting all the extra whitespace when you use your XML prettifier is because whitespace in XML is significant unless you're using a DTD or schema that says otherwise. So basically, all the whitespace in your original document is being preserved and passed on to the prettifier, which adds more whitespace every time you run it.

If Python has a function to remove whitespace from cdata, you might try running that before running your prettifier function.

(I don't use Python myself, otherwise I'd look it up. I wanted info on SAX programming in Scheme, but there's not much Scheme content on Youtube. Fortunately it seems to be language independent.)

jeffspaulding
Автор

thank you for the video..is there any method to process python file in xml file

anilyasasvi
Автор

Could I use these commands to get information from an XML and write another new file? I'm trying to get some information from an XML and write to json coco format.

Naynve
Автор

Danke mehrmals :) Koenntest du die People.XML Datei hochladen?

philipe
Автор

Hey Florian, is there any API that allows you to convert JSON to XML and vice versa?

aditya_asundi
Автор

Hey neural nine, I am banned from ur discord server. It can be because someone hacked my account and was sending that fake hacking nitro links everywhere. Pls unban me.

IzUrBoiKK