def METHOD_NAME(self, filename):
    lst = self.wifi_networks_list()
    with open(filename, 'w', encoding='utf-8') as out:
        out.write('<?xml version="1.0" encoding="UTF-8"?>\n')
        out.write("<networkslist>\n")
        for lst_itm in lst:
            out.write("\t<network>\n")
            out.write("\t\t<address>" + lst_itm[0] + "</address>\n")
            out.write("\t\t<essid>" + lst_itm[1] + "</essid>\n")
            out.write("\t\t<mode>" + lst_itm[2] + "</mode>\n")
            out.write("\t\t<channel>" + lst_itm[3] + "</channel>\n")
            out.write("\t\t<frequency>" + lst_itm[4] + "</frequency>\n")
            out.write("\t\t<quality>" + lst_itm[5] + "</quality>\n")
            out.write("\t\t<signal>" + lst_itm[6] + "</signal>\n")
            out.write("\t\t<noise>" + lst_itm[7] + "</noise>\n")
            out.write("\t\t<security>" + lst_itm[8] + "</security>\n")
            out.write("\t</network>\n")
        out.write("</networkslist>\n")