@classmethod<EOL><INDENT>def from_dict(cls, dictionary, root="<STR_LIT:root>"):<DEDENT>
return cls(cls._build_dict_etree(etree.Element(root), dictionary))<EOL>
Create an instance of ``XMLParser`` from a given dictionary.

        :param dict dictionary: The dictionary to build from
        :param root: The name of the root element to use, defaults to "root", optional
        :return: The new ``XMLParser`` instance
        :rtype: XMLParser