1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Having an issue with XML data types

Discussão em 'Python' iniciado por Stack, Setembro 23, 2024.

  1. Stack

    Stack Membro Participativo

    I want to convert an XML file to CSV. However, I keep getting the error AttributeError: 'NoneType' object has no attribute 'integer'.

    xmlparse = Xet.parse('Apple Music Library.xml')
    root = xmlparse.getroot()
    for i in root:
    Track_ID = i.find("Tack ID").integer
    Name = i.find("Name").text
    Artist = i.find("Artist").text


    I've tried changing the data type to text but, no change.

    Continue reading...

Compartilhe esta Página