def on_lxml_loads(self, lxml, config, content, **kwargs):
<EOL>from ..contrib.xml_parser import XMLParser<EOL>return XMLParser.from_xml(<EOL>content, encoding=kwargs.pop("<STR_LIT>", "<STR_LIT:utf-8>")<EOL>).to_dict()<EOL>
The `lxml <https://pypi.org/project/lxml/>`_ loads method.

        :param module lxml: The ``lxml`` module
        :param class config: The loading config class
        :param str content: The content to deserialize
        :param str encoding: The encoding to read the given xml document as, defaults to
            "utf-8", optional
        :returns: The deserialized dictionary
        :rtype: dict