Problem with newlines when I use toprettyxml()

前端 未结 8 871
不知归路
不知归路 2020-11-28 15:17

I\'m currently using the toprettyxml() function of the xml.dom module in a Python script and I\'m having some trouble with the newlines. If don\'t

8条回答
  •  庸人自扰
    2020-11-28 15:52

    If you don't mind installing new packages, try beautifulsoup. I had very good experiences with its xml prettyfier.

提交回复
热议问题