Hi,
you can't go through xml since there isnt a way in FS that would allow you to reimport an xml just to store respondent answers.
What you will need to do is a web service that will get the values from your flash application and then use following code to create a new entry :
// Creates a new voter identity
VoterAnswersData.VotersRow voter = voterAnswers.Voters.NewVotersRow();
voter.SurveyId = yoursurveyid;
voter.StartDate = datesurveystarted;
voter.VoteDate = dateofresponses;
voter.IPSource = ipofrespondent;
voter.LanguageCode = languageofrespondentl;
voter.Validated = true;
voterAnswers.Voters.AddVotersRow(voter);
and then for each of the answer you want to store for that respondent
VoterAnswersData.VotersAnswersRow voterAnswer = voterAnswers.VotersAnswers.NewVotersAnswersRow();
voterAnswer.VoterId = voter.VoterId;
voterAnswer.QuestionId = -1;
voterAnswer.SectionNumber = 0;
voterAnswer.AnswerId = answeridthathasbeenanswered;
voterAnswer.AnswerText = iftextfromatextboxotherwiseleavenull;
voterAnswers.VotersAnswers.AddVotersAnswersRow(voterAnswer);
and finally store everything in the db :
new Voter().AddVoter(voterAnswers);
While I am not proficient with flash I believe that you could get the VoterAnswersData xml / xsd definition through the WSDL once you have setup your web service using .net and then setup everything directly from your flash code and have a simple web service method like this on the .net side :
[WebMethod]
public void AddVoter(VoterAnswersData voterAnswers)
{
new Voter().AddVoter(voterAnswers);
}
if you want to do it through REST you will need to download the REST toolkit of Microsoft to generate REST compatible code.