code: def get_addon_id(addonxml):
      '''Parses an addon id from the given addon.xml filename.'''
      xml = parse(addonxml)
      addon_node = xml.getElementsByTagName('addon')[0]
      return addon_node.getAttribute('id'f get_addon_id(addonxml):
      '''Parses an addon id from the given addon.xml filename.'''
      xml = parse(addonxml)
      addon_node = xml.getElementsByTagName('addon')[0]
      return addon_node.getAttribute('id')
docs: Parses an addon id from the given addon.xml filename.