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

Поделиться
HTML-код
  • Опубликовано: 22 дек 2020
  • Example of approach for XML data with Namespaces using Python xml.etree.ElementTree
    Reference: docs.python.org/3/library/xml...
    Previous video, overview of the Python xlm.etree.ElementTree module: • Parsing XML files with...

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

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

  • @AlvaroMelchor
    @AlvaroMelchor 2 года назад +3

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

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

  • @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 9 месяцев назад

    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!

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

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

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

    This was a huge help. Thank you!

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

    Superb, exactly what I needed to know. Thank you

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

    That was SO helpful Dude. Thank you so much.

  • @davidjnevin
    @davidjnevin Год назад +1

    Really excellent explanation. Thank you so much.

  • @ShivModiShankar
    @ShivModiShankar 4 месяца назад

    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!

  • @RS-el7iu
    @RS-el7iu 3 года назад

    very helpful.... thank u ❤

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

    Brilliant !!!

  • @xpanded4806
    @xpanded4806 3 года назад +1

    Thanks a lot

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

    thank you

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

  • @AnEngineeringGirl
    @AnEngineeringGirl 5 месяцев назад +1

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

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

  • @KiviliG
    @KiviliG 3 года назад

    Can this be done with beautifulsoup?

  • @mihailazarescu1297
    @mihailazarescu1297 3 года назад

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

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