dict_to_xml#
- dict_to_xml(dict_to_cv: dict, attributes: Optional[list] = None) _Element [source]#
Convert any dict containing the given attributes to an XML _Element.
Replacements in keys: - “ “ to “_” - “(” to “_” - “)” to “”
- Parameters:
dict_to_cv (Any) – Dict to convert into a XML
attributes (list) – List of attributes to set in the wanted XML
- Returns:
Wanted XML
- Return type:
_Element