Full XML Processing Guide in Python

Поделиться
HTML-код
  • Опубликовано: 25 авг 2021
  • 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/
  • НаукаНаука

Комментарии • 29

  • @deewademai
    @deewademai Год назад +5

    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.

  • @arin3382
    @arin3382 2 года назад +4

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

  • @ruidian8157
    @ruidian8157 2 года назад +20

    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.

  • @DamianTera
    @DamianTera 2 месяца назад

    It was helpful as an introduction.
    Thank you.

  • @anonlegion9300
    @anonlegion9300 2 года назад +1

    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?

  • @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.

  • @sahanlahiru7193
    @sahanlahiru7193 7 месяцев назад

    thank you❤

  • @fidaeariyan9376
    @fidaeariyan9376 Месяц назад

    tkx for video

  • @anilyasasvi4197
    @anilyasasvi4197 Год назад

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

  • @JaiMiNPaTel2811
    @JaiMiNPaTel2811 2 года назад

    😍🙌🙌

  • @philipe1502
    @philipe1502 2 года назад

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

  • @Dr.Cosmar
    @Dr.Cosmar 2 года назад +2

    SAX tripped my bosses algorithm.
    Got a error response out of him, "What the hell are you watching??".

  • @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 года назад +1

      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 Год назад +1

    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 Год назад +1

    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 RUclips. 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?

  • @KakariaHarsh
    @KakariaHarsh 2 года назад

    :)

  • @AJain-18
    @AJain-18 2 года назад +1

    First here !!!!

  • @hiepvanphong
    @hiepvanphong Год назад

    ngon

  • @IzUrBoiKK
    @IzUrBoiKK 2 года назад +1

    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.