change to a more appropriate function name: create_survey_element_from_xml