dict_to_xml#
- dict_to_xml(dict_to_cv: dict, attributes: list | None = None) _Element [source]#
Convert any dict containing the given attributes to a
lxml _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