'Return the xml as an xml.etree.ElementTree.Element'

def _download_xml(self, url_or_request, video_id, note=u'Downloading    XML', errnote=u'Unable    to    download    XML', transform_source=None, fatal=True, encoding=None, data=None, headers={}, query={}):

    xml_string = self._download_webpage(url_or_request, video_id, note, errnote, fatal=fatal, encoding=encoding, data=data, headers=headers, query=query)
    if (xml_string is False):
        return xml_string
    if transform_source:
        xml_string = transform_source(xml_string)
    return compat_etree_fromstring(xml_string.encode(u'utf-8'))
