def create_new_hero(hero_xml_element):
    parser = XMLParser()
    id = hero_xml_element.getAttribute('id')
    information = parser.create_info_object_with_attributes(
        hero_xml_element, Hero.keys)
    new_hero = Hero(id, information)
    return new_hero