code: def _convert_xml_to_ranges(response):
      '''
      <?xml version="1.0" encoding="utf-8"?>
      <Ranges>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
      </Ranges>
      '''
      if response is None or response.body is None:
          return None
  
      ranges = list()
      ranges_element = ETree.fromstring(response.body)
  
      for range_element in ranges_element.findall('Range'):
          # Parse range
          range = FileRange(int(range_element.findtext('Start')), int(range_element.findtext('End')))
  
          # Add range to list
          ranges.append(range)
  
      return rangef _convert_xml_to_ranges(response):
      '''
      <?xml version="1.0" encoding="utf-8"?>
      <Ranges>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
      </Ranges>
      '''
      if response is None or response.body is None:
          return None
  
      ranges = list()
      ranges_element = ETree.fromstring(response.body)
  
      for range_element in ranges_element.findall('Range'):
          # Parse range
          range = FileRange(int(range_element.findtext('Start')), int(range_element.findtext('End')))
  
          # Add range to list
          ranges.append(range)
  
      return ranges
docs: <?xml version="1.0" encoding="utf-8"?>
      <Ranges>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
        <Range>
          <Start>Start Byte</Start>
          <End>End Byte</End>
        </Range>
      </Ranges>