Тёмный

Full XML Processing Guide in Python 

NeuralNine
Подписаться 338 тыс.
Просмотров 69 тыс.
50% 1

Today we learn two ways to process XML files in Python. First we talk about SAX and then about DOM.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Наука

Опубликовано:

 

25 авг 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@deewademai
@deewademai 11 месяцев назад
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.
@DamianTera
@DamianTera 7 дней назад
It was helpful as an introduction. Thank you.
@ruidian8157
@ruidian8157 2 года назад
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.
@samucancld
@samucancld Год назад
xml.ElementTree is great 😃👍
@abdultheseekerofknowledge4453
BeautifulSoup is absolute best one
@arin3382
@arin3382 2 года назад
Please make a series on Assembly language. I absolutely love your channel. Keep making good content. ♥️
@anonlegion9300
@anonlegion9300 2 года назад
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?
@sahanlahiru7193
@sahanlahiru7193 5 месяцев назад
thank you❤
@Nay92nve
@Nay92nve 2 года назад
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.
@anilyasasvi4197
@anilyasasvi4197 Год назад
thank you for the video..is there any method to process python file in xml file
@Dr.Cosmar
@Dr.Cosmar Год назад
SAX tripped my bosses algorithm. Got a error response out of him, "What the hell are you watching??".
@philipe1502
@philipe1502 2 года назад
Danke mehrmals :) Koenntest du die People.XML Datei hochladen?
@JaiMiNPaTel2811
@JaiMiNPaTel2811 2 года назад
😍🙌🙌
@aditya_asundi
@aditya_asundi 2 года назад
Hey Florian, is there any API that allows you to convert JSON to XML and vice versa?
@kemalcihanbastak8476
@kemalcihanbastak8476 2 года назад
You can use xml2json library for that
@fus3n
@fus3n 2 года назад
if you understand both it should be easy to make your own for some simple convertion
@basalduat
@basalduat Год назад
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.
@jeffspaulding9834
@jeffspaulding9834 Год назад
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 RU-vid. Fortunately it seems to be language independent.)
@Param3021
@Param3021 Год назад
yeah! for removing trailing white spaces, we have str.strip() function, or we can replace it manually using str.replace(' ', '')
@jordanjones3711
@jordanjones3711 Год назад
where is the example xml data
@g2D1
@g2D1 Год назад
what is the IDE you are using?
@azet73
@azet73 Год назад
Pycharm
@KakariaHarsh
@KakariaHarsh 2 года назад
:)
@AJain-18
@AJain-18 2 года назад
First here !!!!
@hiepvanphong
@hiepvanphong Год назад
ngon
@IzUrBoiKK
@IzUrBoiKK 2 года назад
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.
Далее
Python Intermediate Tutorial #10 - XML Processing
27:23
Lens Removal Hack
00:32
Просмотров 2,2 млн
Chelovek pauk | Bravo jamoasi
00:48
Просмотров 592 тыс.
XML Schema (XSD) Beginner Tutorial with Demo
9:44
Просмотров 328 тыс.
Parse XML Files with Python - Basics in 10 Minutes
10:07
Parsing XML files with Python (xml.etree.ElementTree)
35:04
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,4 млн
Python Sockets Simply Explained
39:33
Просмотров 150 тыс.
Transforming Nested XML to Pandas DataFrame
12:57
Просмотров 3,1 тыс.
Fiber kablo
0:15
Просмотров 6 млн
Я бы сделал дешевле - Samsung Flip 4
1:00
Nokia 3310 versus Red Hot Ball
0:37
Просмотров 708 тыс.