modelspec.utils.save_to_xml_file

modelspec.utils.save_to_xml_file(info_dict, filename, indent=4, root='modelspec')[source]

This saves a dictionary to an XML file.

Parameters:
  • info_dict (dict) – The dictionary containing the data to be saved.

  • filename (str) – The name of the file to save the XML data to.

  • indent (int, optional) – The number of spaces used for indentation in the XML file. Defaults to 4.