mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-10 06:16:46 +00:00
10 lines
205 B
Python
10 lines
205 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import xml.dom.minidom
|
|
|
|
class XmlTools:
|
|
@staticmethod
|
|
def pretty_xml(xmlstr):
|
|
mdx = xml.dom.minidom.parseString(xmlstr)
|
|
return mdx.toprettyxml(indent=" ")
|