import json
import array
#
# import xmltodict
#
#
# def parse_xml(xml_file):
#     xml = open(xml_file, "rb")
#     xml_string = xml.read()
#     xml.close()
#     return xmltodict.parse(xml_string)
#
#
# test = parse_xml(r"C:\Python\bank\config\system.config.xml")
# print(json.dumps(test))
# print(test["data"]['name'])
#
#
# def write_xml(xml_dic):
#     xml_string = xmltodict.unparse(xml_dic, pretty=True)
#     out_xml = open(r"C:\Python\bank\config\system.config.xml", "w")
#     out_xml.write(xml_string)
#     out_xml.close()
#
# # xml_dic = {
# #     'data':{
# #
# #         'name': 'aa','path':r'C:\mysql\bin'
# # }
# # }
# # write_xml(xml_dic)

