LoginSignup
0
0

More than 1 year has passed since last update.

pythonを使って .xmlファイルを読み込み、見栄え良く出力する

Posted at

xml.dom.minidomを利用

import xml.dom.minidom


dom = xml.dom.minidom.parse(fileName)
pretty_xml_as_string = dom.toprettyxml()
print(pretty_xml_as_string)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0