code: def get_cuts_from_xml(xmlfile):
      
  
      root = ElementTree.ElementTree(file=xmlfile).getroot()
      event_maps = root.findall('EventMap')
      alias_maps = root.findall('AliasDict')[0]
  
      event_classes = {}
      event_types = {}
      event_aliases = {}
  
      for m in event_maps:
          if m.attrib['altName'] == 'EVENT_CLASS':
              for c in m.findall('EventCategory'):
                  event_classes[c.attrib['name']] = strip(
                      c.find('ShortCut').text)
          elif m.attrib['altName'] == 'EVENT_TYPE':
              for c in m.findall('EventCategory'):
                  event_types[c.attrib['name']] = strip(c.find('ShortCut').text)
  
      for m in alias_maps.findall('Alias'):
          event_aliases[m.attrib['name']] = strip(m.text)
  
      replace_aliases(event_aliases, event_aliases.copy())
      replace_aliases(event_aliases, event_aliases.copy())
      replace_aliases(event_classes, event_aliases)
      replace_aliases(event_types, event_aliases)
  
      event_selections = {}
      event_selections.update(event_classes)
      event_selections.update(event_types)
      event_selections.update(event_aliases)
  
      return event_selections
docs: Extract event selection strings from the XML file.