parse xml into list of atom key and value