def get_pretty_xml(xml_dom):
    parser = etree.XMLParser(strip_cdata=False)
    xml = etree.fromstring(xml_dom.toxml(), parser)
    pretty_xml = etree.tostring(xml, pretty_print=True)
    return pretty_xml
Formats an XML document into a string with nice-looking line-breaks (for get_mrf).
dataset/ETHPy150Open nasa-gibs/onearth/src/layer_config/bin/oe_configure_layer.py/get_pretty_xml