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

Поділитися
Вставка
  • Опубліковано 16 вер 2024

КОМЕНТАРІ • 32

  • @AlvaroMelchor
    @AlvaroMelchor 2 роки тому +3

    Thanks, it's very clear, most of the tutorials cover only the non namespaces xml

  • @IMMORTALmen
    @IMMORTALmen 2 роки тому +1

    Thank you!
    Spended almost two days trying to resolve namespace issue, and than found this video, thank you.

  • @adrianwalker9917
    @adrianwalker9917 3 роки тому +4

    This was EXACTLY what I was looking for but I didn't know it. Thank you!!

  • @jezhayes
    @jezhayes Рік тому +1

    Thank yopu so much, I was beginning to think I was cursed to manually write a text parser for these xml files forever.

  • @saranya548
    @saranya548 11 місяців тому

    Thank you Francesco for explaining this concept so easily with a demo.

  • @maloman1989
    @maloman1989 2 роки тому +1

    Really cristal clear tutorial, I understand a lot of things I dindn't understand on XML namespaces, Thanks a lot Guy!

  • @LukasNachtigall
    @LukasNachtigall 2 роки тому +4

    Hey man! You just helped me to finish my parser! I do not know how, but I finally was able to find and change a text in each specific element in my XML file. I still do not understand, why I have to register the namespace, but it did the work perfectly. Your vide was really helpful. I didn't understood 70% of it for the 1st time, but now it's more clear to me. Thanks man!

    • @fcento
      @fcento  2 роки тому +1

      Glad I could help!

  • @stevemorse5052
    @stevemorse5052 Рік тому

    Francesco, thank you.
    Thanks to you I now somewhat understand what is happening in the XML file I have, I did not know that is contained name spaces.
    Within the first 6 minutes, I am writing this before I have read the comments or watched the whole video.
    You have saved me hours of coding as I was going to write my own parser.
    All the other video sorta, kinds, neglected this small detail!
    Now after reading the comments, I see you have helped a LOT of people, thank you again.

  • @davidjnevin
    @davidjnevin 2 роки тому +1

    Really excellent explanation. Thank you so much.

  • @5328csabi
    @5328csabi Рік тому

    Tried to find a solutuion on stackoverflow and other pages, and this video was the solution, good examples, good explanation with actual codes run. Thank you!

  • @piercenorton1544
    @piercenorton1544 3 дні тому

    This was incredibly helpful. Thank you!

  • @ShivModiShankar
    @ShivModiShankar 7 місяців тому

    Thanks for saving my day Francesco :)

  • @narayanamurthyuppala6049
    @narayanamurthyuppala6049 Рік тому

    Thanks a lot. It saved lot of my time

  • @tessdejaeghere6972
    @tessdejaeghere6972 2 роки тому +1

    Super helpful, thanks a lot!

  • @thomasloia8874
    @thomasloia8874 3 роки тому

    Superb, exactly what I needed to know. Thank you

  • @andrewbourne2296
    @andrewbourne2296 2 роки тому

    That was SO helpful Dude. Thank you so much.

  • @maxnoish
    @maxnoish 2 роки тому +1

    Brilliant !!!

  • @GuitFishN
    @GuitFishN 3 роки тому

    This was a huge help. Thank you!

  • @AnEngineeringGirl
    @AnEngineeringGirl 8 місяців тому +1

    After editing the xml file, I don't want the ns tag in each line. What should I do?

  • @noneyahbiz6976
    @noneyahbiz6976 25 днів тому

    thank you

  • @xpanded4806
    @xpanded4806 3 роки тому +1

    Thanks a lot

  • @equipagescatamaranlangrune8331

    Nice job Francesco, thank you. I do have a question regarding your last example. How do you get x.tag without the namespace in it ?

  • @sreepulipaka4918
    @sreepulipaka4918 3 роки тому

    Can you help me with how to search absolute XPath in a xml that has name spaces as I donot want to implement code with relative path.

  • @mihailazarescu1297
    @mihailazarescu1297 3 роки тому

    Next time, please try to make your videos for phone users too. Thanks!

  • @KiviliG
    @KiviliG 3 роки тому

    Can this be done with beautifulsoup?

  • @nk461
    @nk461 Місяць тому

    What the font bro? 😅 Can't read, I think I am too old

  • @Gamer-mg6my
    @Gamer-mg6my 2 роки тому

    Hi. I have this xmlns and i tried every solution and i can't read the XML with this namespace:
    .....
    Some idea to solve this? :/
    it is a xml, but the extension file is .vdx

    • @fcento
      @fcento  2 роки тому +1

      Not enough information. What error do you get?

    • @Gamer-mg6my
      @Gamer-mg6my 2 роки тому

      @@fcento hi thank you very much for your contributions, don't know why a while ago didn't compile but now it works, finally i do it with the solution that you recommended us on second 14:20

  • @nealrutgerskid
    @nealrutgerskid Рік тому

    thank you