10 lines
210 B
Python
10 lines
210 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import xml.dom.minidom
|
|
|
|
class XmlToolsMixin:
|
|
@staticmethod
|
|
def pretty_xml(xmlstr):
|
|
mdx = xml.dom.minidom.parseString(xmlstr)
|
|
return mdx.toprettyxml(indent=" ")
|