<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_xml_doc(self, endpoint, query, is_post=False):
 """ Return False if connection could not be made. Otherwise, return a minidom Document. """

        response = self._get_response(endpoint, query, is_post=is_post)
        return minidom.parse(response.text)