Parse xml from file using etree works when reading string, but not a file

前端 未结 2 864
萌比男神i
萌比男神i 2021-01-27 00:58

I am a relative newby to Python and SO. I have an xml file from which I need to extract information. I\'ve been struggling with this for several days, but I think I finally foun

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-27 01:11

    Have you thought of trying beautifulsoup to parse your xml with python:

    http://www.crummy.com/software/BeautifulSoup/bs3/documentation.html#Parsing%20XML

    There is some good documentation and a healthy online group so support is quite good

    A

提交回复
热议问题