Pretty printing XML in Python

后端 未结 26 1809
一个人的身影
一个人的身影 2020-11-22 02:18

What is the best way (or are the various ways) to pretty print XML in Python?

26条回答
  •  星月不相逢
    2020-11-22 02:44

    XML pretty print for python looks pretty good for this task. (Appropriately named, too.)

    An alternative is to use pyXML, which has a PrettyPrint function.

提交回复
热议问题