def string_to_pretty_xml(input_string=None, encode='UTF-8'):
    """
        format string to xml
    :param input_string:
    :param encode:
    :return: formatting string
    """
    import xml.dom.minidom
    xml = xml.dom.minidom.parseString(input_string)
    return xml.toprettyxml()
