def xml_get_attrs(xml_element, attrs):
    """Returns the list of necessary attributes
    
    Parameters: 
      element: xml element
      attrs: tuple of attributes

    Returns:
      a dictionary of elements

    """    
    result = {}
    for attr in attrs:
        result[attr] = xml_element.getAttribute(attr)   
    return result