@classmethod<EOL><INDENT>def _build_dict_etree(cls, parent, dictionary):<DEDENT>
for (key, value) in dictionary.items():<EOL><INDENT>if isinstance(value, dict):<EOL><INDENT>parent.append(cls._build_dict_etree(etree.Element(key), value))<EOL><DEDENT>elif isinstance(value, (list, tuple, set, frozenset)):<EOL><INDENT>list_parent = etree.Element(key)<EOL>parent.append(cls._build_list_etree(list_parent, value))<EOL><DEDENT>else:<EOL><INDENT>parent.append(cls._build_base_etree(parent, key, value))<EOL><DEDENT><DEDENT>return parent<EOL>
Builds a element for a dictionary.

        :param lxml.etree.Element: The parent element to add to
        :param dict dictionary: The dictionary to build from
        :return: The built dictionary element
        :rtype: lxml.etree.Element