code: def _parse_dav_element(self, dav_response):
          
          href = parse.unquote(
              self._strip_dav_path(dav_response.find('{DAV:}href').text)
          )
  
          if six.PY2:
              href = href.decode('utf-8')
  
          file_type = 'file'
          if href[-1] == '/':
              file_type = 'dir'
  
          file_attrs = {}
          attrs = dav_response.find('{DAV:}propstat')
          attrs = attrs.find('{DAV:}prop')
          for attr in attrs:
              file_attrs[attr.tag] = attr.text
  
          return FileInfo(href, file_type, file_attrs)
docs: Parses a single DAV element
  
          :param dav_response: DAV response
          :returns :class:`FileInfo`