@classmethod<EOL><INDENT>def from_xml(cls, content, encoding="<STR_LIT:utf-8>"):<DEDENT>
parser = etree.XMLParser(encoding=encoding)<EOL>return cls(fromstring(content.encode(encoding), parser=parser))<EOL>
Create an instance of ``XMLParser`` from some xml content.

        :param str content: The xml content to build from
        :param str encoding: The encoding to use for reading the xml content
        :return: The new ``XMLParser`` instance
        :rtype: XMLParser